/* Подтягиваем базовые элементы, дублируя логику контейнеров из главной, но адаптируя под контент */
.profile-card {
    width: min(100%, 900px);
    max-width: 900px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 8px;
    padding: 14px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.link-item:hover {
    cursor: pointer;
    border-color: #ff5500;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
    transform: translateY(-2px);
    background: rgba(45, 45, 45, 0.9);
}

.label {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.action-hint {
    font-size: 13px;
    color: #ff5500;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.link-item:hover .action-hint { opacity: 1; }

/* УНИКАЛЬНЫЕ СТИЛИ СТРАНИЦЫ ПРОЕКТОВ */
.section-title {
    font-size: 13px;
    color: #ffaa00;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    margin: 18px 0 10px 4px;
    opacity: 0.8;
    border-left: 3px solid #ff4500;
    padding-left: 10px;
}

/* СЕТКА ГАЛЕРЕИ ДЛЯ ДИВОВ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: #ff5500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

/* При желании, можно вернуть сетку в 2 или 1 колонку на смартфонах */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrapper {
    position: relative;
    max-width: min(90vw, 900px);
    max-height: 90vh;
}

.modal-content {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 69, 0, 0.35);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}
