
.photo-gallery-title {
    color: var(--global-color-0);
    font-size: 1.5em;
    letter-spacing: unset !important;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
}
.photo-gallery {
    width: 100%;
    position: relative;
    padding: 1rem;
    box-shadow: 0px 0px 30px #eaeaea;
    transition: box-shadow 0.2s ease-in-out;
}
.photo-gallery:hover {
      box-shadow: 0px 0px 60px #eaeaea;
}

.gallery-main-image {
    position: relative;
    max-height: 600px; /* limits main image height */
    height: 650px;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* prevents image distortion */
    display: block;
}
.gallery-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--global-color-0);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-nav.left {
    left: 1rem;
}

.gallery-main-nav.right {
    right: 1rem;
}

.gallery-thumb-carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.thumb-nav {
    padding: 0.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.thumbs-wrapper {
    height: 130px;
    border-radius: 0;
    overflow-x: auto;
    display: flex;
    align-items: center;
    padding: 5px;
    flex-grow: 1;
}

.thumbs-wrapper::-webkit-scrollbar {
    height: 12px;
}

.thumbs-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--global-color-0);
    border-radius: 3px;
}

.gallery-thumb {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 150px;
    height: 100px;
    flex-shrink: 0;
}

.gallery-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    user-drag: none;        /* For WebKit browsers */
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;      /* Prevent text selection */
    pointer-events: auto;   /* Allow event bubbling */
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb-carousel::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumb-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Grab-to-scroll style */
.thumbs-wrapper.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.thumbs-wrapper {
    cursor: grab;
}

/* Prevent selection during dragging */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.image-author {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent dark background */
    color: white;
    font-size: 14px;
    border-radius: 4px;
    font-family: sans-serif;
    max-width: 90%;
    box-sizing: border-box;
    backdrop-filter: blur(4px); /* subtle blur for better readability */
    z-index: 20;
    pointer-events: none; /* lets clicks pass through */
}

.image-summary {
    width:100%;
    margin:10px 0px;
    color:grey;
    text-align: center;
    min-height: 24px;
}

/* .image-summary {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 13px;
    border-radius: 4px;
    font-family: sans-serif;
    max-width: 90%;
    box-sizing: border-box;
    margin-top: 2px;
    backdrop-filter: blur(4px);
    z-index: 20;
} */


@media (max-width: 991px) {
    .gallery-main-image {
        height: unset;
    }
}
@media (max-width: 768px) {
    .image-author {
        font-size: 12px;
        padding: 4px 8px;
    }

    .gallery-main-nav { display: none; }

    .gallery-thumb {
        width: 100px;
        height: 80px;
    }
    .photo-gallery {
        padding: 10px !important;
    }
}