﻿/* View Gallery Photo Showcase Styling & Animations */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

/* Equal Spacing */
.photo-gallery-section {
    margin-top: -91px !important;
    padding-top: 65px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

body .footer-hotel-dark .hotel-get-touch {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}

/* Gallery Album Top Bar */
.gallery-top-bar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.gallery-album-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.gallery-album-header span.album-subtext {
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.btn-back-gallery {
    display: inline-block;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-back-gallery span.back-arrow {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-back-gallery:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-back-gallery:hover span.back-arrow {
    transform: translateX(-4px);
}

/* Flexbox Photo Grid */
@media (min-width: 992px) {
    .photo-grid-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .photo-grid-row:before,
    .photo-grid-row:after {
        display: none !important;
    }
    .photo-item-col {
        width: 33.33333333% !important;
        float: left !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .photo-grid-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .photo-grid-row:before,
    .photo-grid-row:after {
        display: none !important;
    }
    .photo-item-col {
        width: 50% !important;
        float: left !important;
    }
}

/* Entrance Animation */
@keyframes photoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.photo-item-col {
    margin-bottom: 30px !important;
    opacity: 0;
    animation: photoPopIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.photo-item-col:nth-child(1) { animation-delay: 0.05s; }
.photo-item-col:nth-child(2) { animation-delay: 0.10s; }
.photo-item-col:nth-child(3) { animation-delay: 0.15s; }
.photo-item-col:nth-child(4) { animation-delay: 0.20s; }
.photo-item-col:nth-child(5) { animation-delay: 0.25s; }
.photo-item-col:nth-child(6) { animation-delay: 0.30s; }
.photo-item-col:nth-child(n+7) { animation-delay: 0.35s; }

/* Photo Showcase Tile */
.photo-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 270px;
    background-color: #111827;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    cursor: pointer;
}

.photo-tile a.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.4s ease;
}

/* Hover Lift & 3D Depth */
.photo-tile:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 20px 38px -8px rgba(0, 0, 0, 0.22);
}

.photo-tile:hover img {
    transform: scale(1.1);
    filter: brightness(0.92);
}

/* Glassmorphic Hover Overlay */
.photo-tile .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.photo-tile:hover .photo-overlay {
    opacity: 1;
}

/* Floating Glass Zoom Badge */
.photo-zoom-badge {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    transform: scale(0.6) rotate(-30deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.photo-tile:hover .photo-zoom-badge {
    transform: scale(1) rotate(0deg);
}

.photo-caption-hint {
    margin-top: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) 0.05s;
}

.photo-tile:hover .photo-caption-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Light Sheen Sweep Effect on Hover */
.photo-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

.photo-tile:hover::after {
    left: 130%;
    transition: left 0.7s ease-in-out;
}

@media (max-width: 767px) {
    .photo-gallery-section {
        margin-top: -50px !important;
        padding-top: 40px !important;
        padding-bottom: 0px !important;
    }
    body .footer-hotel-dark .hotel-get-touch {
        padding-top: 15px !important;
    }
    .gallery-top-bar {
        display: block !important;
        margin-bottom: 25px;
    }
    .btn-back-gallery {
        margin-top: 15px;
    }
    .photo-tile {
        height: 230px;
    }
    .photo-item-col {
        margin-bottom: 20px !important;
    }
}
