﻿/* =========================================
   Photo Gallery Container & Wrapper
   ========================================= */
.photo-gallery-wrapper {
    /*   padding: 20px ;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;*/

    padding: 20px;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

.gallery-heading {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Scrollable Album Navigation Links */
/*.scrollable-div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

    .scrollable-div a:not(.scrollable-div) {
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .scrollable-div a:hover {
        background-color: #d0e7ff !important;
        color: #002b5c !important;
    }
*/


.scrollable-div {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    gap: 5px; /* Adjust spacing between items */
    padding: 10px 0;
}

    /* Optional: Hide scrollbar for a cleaner look while keeping functionality */
    .scrollable-div::-webkit-scrollbar {
        height: 6px;
    }

    .scrollable-div::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
/* =========================================
   Photo Grid Layout
   ========================================= */
.photo-gallery-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.photo-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #c2048a;
}

    .photo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* =========================================
   Thumbnail & Hover Overlay
   ========================================= */
.photo-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .photo-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.photo-card:hover .photo-thumbnail img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-view-icon {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State Styling */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

/* =========================================
   Lightbox Modal Styling
   ========================================= */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-modal-content img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 6px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        object-fit: contain;
    }
/* --- Modal Overlay Container --- */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

/* --- Content Wrapper for Image Scaling --- */
.photo-modal-content-wrapper {
    /*    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    max-height: 80%;*/

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

/* --- Modal Image with Smooth Transform Transition --- */
#modalPhoto {
    transition: transform 0.2s ease;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* --- Top-Right Control Toolbar (Zoom In, Zoom Out, Close) --- */
.photo-modal-controls {
    /*    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1002;*/

    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 100000;
    display: flex;
    gap: 15px;
    background: black;
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* --- Styling for Zoom & Close Buttons --- */
.modal-ctrl-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .modal-ctrl-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .modal-ctrl-btn:active {
        transform: scale(0.95);
    }

/* --- Previous & Next Arrow Buttons --- */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 32px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 1002;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .modal-nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.photo-modal-content-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    max-height: 80%;
    touch-action: none; /* Prevents mobile browser scrolling conflict during pinch/pan */
    cursor: grab;
}

    .photo-modal-content-wrapper:active {
        cursor: grabbing;
    }

#modalPhoto {
    /*transition: transform 0.05s ease-out;*/ /* Real-time fluid motion tracking */
    /*max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transform-origin: center center;*/


    max-width: 85vw;
    max-height: 85vh;
    transition: transform 0.15s ease-out; /* Smooth transition for double-tap zoom */
    transform-origin: center center;
    pointer-events: none;
}