/* Ultra Luxury Gallery Experience */
.luxury-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.luxury-gallery-modal.active {
    opacity: 1;
}

.luxury-gallery-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: -1;
}

.luxury-gallery-container {
    width: 95%;
    max-width: 1800px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 350px;
    height: 90vh;
}

.luxury-gallery-modal.active .luxury-gallery-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.luxury-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.luxury-gallery-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.luxury-gallery-modal.active .luxury-gallery-title {
    opacity: 1;
    transform: translateY(0);
}

.luxury-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.luxury-gallery-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.luxury-gallery-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98), rgba(20, 20, 20, 0.95));
}

.luxury-gallery-main {
    position: relative;
    width: 100%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #000;
    overflow: hidden;
}

.luxury-gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-gallery-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.luxury-gallery-image-wrapper:hover::after {
    opacity: 1;
}

.luxury-gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-gallery-image-wrapper:hover img {
    transform: scale(1.03);
}

.luxury-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.luxury-gallery-image-wrapper:hover .luxury-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.luxury-gallery-caption-content {
    flex: 1;
}

.luxury-gallery-caption h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #e6e6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-gallery-caption p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.luxury-gallery-counter {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-left: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.luxury-gallery-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    backdrop-filter: blur(8px);
    opacity: 0.9;
}

.luxury-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.luxury-gallery-nav.prev {
    margin-left: 20px;
    z-index: 2;
}

.luxury-gallery-nav.next {
    margin-right: 20px;
    z-index: 2;
}

.luxury-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.98);
    margin-top: auto;
    height: 35%;
    overflow-y: auto;
}

.luxury-gallery-thumbnails::-webkit-scrollbar {
    width: 8px;
}

.luxury-gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.luxury-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.luxury-gallery-thumbnail {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    border: 2px solid transparent;
}

.luxury-gallery-thumbnail:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.luxury-gallery-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.luxury-gallery-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.luxury-gallery-thumbnail.active {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.luxury-gallery-thumbnail.active::before {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Image Info Panel */
.luxury-gallery-info {
    height: 100%;
    background: rgba(25, 25, 25, 0.98);
    padding: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    color: #fff;
}

.luxury-gallery-info::-webkit-scrollbar {
    width: 8px;
}

.luxury-gallery-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.luxury-gallery-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.luxury-gallery-info-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-gallery-info-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
    background: linear-gradient(45deg, #fff, #e6e6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-gallery-info-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.luxury-gallery-info-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
}

.luxury-gallery-info-meta i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 12px;
}

.luxury-gallery-info-content {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Loading Animation */
.luxury-gallery-image-wrapper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .luxury-gallery-container {
        grid-template-columns: 1fr;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .luxury-gallery-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;
    }

    .luxury-gallery-main {
        height: 45vh;
    }

    .luxury-gallery-thumbnails {
        height: auto;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .luxury-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .luxury-gallery-caption h3 {
        font-size: 20px;
    }

    .luxury-gallery-caption p {
        font-size: 14px;
    }

    .luxury-gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
} 