﻿
.gallery-main-img {
    object-fit: cover;
    cursor: pointer;
}

.gallery-group-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    cursor: pointer;
}

.group-header {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 20px;
}

.back-btn {
    margin-bottom: 20px;
}



.main-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.gallery-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-link:hover .gallery-main-img {
    transform: scale(1.05);
}

.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10; /* ensure above the image */
    background: rgba(0,0,0,0.6); /* semi-transparent black */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    display: block;
    box-sizing: border-box;
}

.main-image-link:hover .caption-overlay {
    background: rgba(0,0,0,0.8);
}



.gallery-header {
    text-align: center; /* centers the text */
    margin-bottom: 30px; /* space below the header */
}

.gallery-header h2 {
    font-size: 2em; /* slightly larger */
    color: #4CAF50; /* green text */
    border-bottom: 3px solid #fd7e14; /* orange underline */
    display: inline-block; /* shrink underline to text width */
    padding-bottom: 8px; /* space between text and underline */
    font-weight: 600; /* slightly bold */
    letter-spacing: 1px; /* modern spacing */
}



#childGallery {
    display: none;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.child-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.group-header {
    text-align: center;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.back-btn {
    margin-left: 15px;
}


