/* === ФОТОГАЛЕРЕЯ === */

.object-gallery {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 
        0 0 30px rgba(201, 162, 39, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Главное фото (слева, ~55%) */
.gallery-main {
    flex: 0 0 55%;
    height: 400px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
}

.gallery-main:hover {
    border-color: #c9a227;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-no-photo {
    color: #666;
    font-size: 18px;
}

/* Панель превью (справа, ~45%) */
.gallery-thumbs-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Сетка превью 3 колонки, ряды по контенту */
.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(80px, auto);
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.gallery-thumbs-grid::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbs-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gallery-thumbs-grid::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.5);
    border-radius: 2px;
}

.gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery-thumb:hover {
    border-color: #c9a227;
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
    transform: scale(1.03);
}

.gallery-thumb.active {
    border-color: #c9a227;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.6);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигация превью */
.gallery-thumbs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.thumbs-nav-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.thumbs-nav-btn:hover {
    background: #e0e0e0;
}

.thumbs-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Счетчик */
.gallery-counter {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 4px 0;
}

/* === LIGHTBOX === */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.gallery-lightbox.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

/* Overlay лайтбокса галереи */
.gallery-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

/* Центральный контент лайтбокса */
.gallery-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100vw - 160px);
    z-index: 10;
}

/* Кнопка закрытия */
.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gallery-lightbox-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Стрелки навигации */
.gallery-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gallery-lightbox-arrow:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-arrow-left {
    left: 30px;
}

.gallery-lightbox-arrow-right {
    right: 30px;
}

/* Контейнер картинки */
.gallery-lightbox-image-wrap {
    max-width: calc(100vw - 200px);
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Превью ПОД картинкой */
.gallery-lightbox-thumbs {
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 8px 0;
    margin-top: 12px;
    margin-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

.gallery-lightbox-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.gallery-lightbox-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
}

.gallery-lightbox-thumb:hover {
    opacity: 0.8;
    border-color: rgba(255,255,255,0.5);
}

.gallery-lightbox-thumb.active {
    opacity: 1;
    border-color: #ff385c;
}

.gallery-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Счетчик ПОД превью */
.gallery-lightbox-counter {
    color: #fff;
    font-size: 16px;
    margin-top: 8px;
    padding: 0;
}

/* === СЕКЦИЯ "ФОТОГРАФИИ ОТ ГОСТЕЙ" === */
.guest-photos-section {
    margin: 30px 0;
    padding: 25px 30px;
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 
        0 0 30px rgba(201, 162, 39, 0.15),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.guest-photos-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}

.guest-photos-title i {
    color: #c9a227;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.8);
}

.guest-photos-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.5) #1a1a1a;
}

.guest-photos-scroll::-webkit-scrollbar {
    height: 6px;
}

.guest-photos-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.guest-photos-scroll::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.5);
    border-radius: 3px;
}

.guest-photo-item {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.guest-photo-item:hover {
    border-color: #c9a227;
    transform: scale(1.05);
    box-shadow: 
        0 0 20px rgba(201, 162, 39, 0.5),
        0 0 40px rgba(201, 162, 39, 0.3);
}

.guest-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.guest-photo-item:hover img {
    filter: brightness(1.1);
}
