/* Tabs */
.tabs {
    text-align: center;
    margin-bottom: 20px;
}

.tabs button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    transition: background-color 0.3s;
	margin-bottom:10px;
}

.tabs button.active {
    background-color: #b6e30c;
    color: #000;
}

.tabs button:hover:not(.active) {
    background-color: #b6e30c;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* align items to left for margin spacing */
}

/* Gallery links/images */
.gallery a {
    position: relative;
    display: block;
    width: calc(25% - 20px); /* 4 per row with margin-right */
    border-radius: 10px;
    border: 2px solid #000; /* 2px solid border added */
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    margin-right: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery a:hover {
    border-color: #b6e30c; /* optional: change border on hover */
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery a:hover img {
    transform: scale(1.1);
    filter: brightness(80%);
}

/* Overlay caption */
.gallery a::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery a { width: calc(33.33% - 20px); } /* 3 per row */
}

@media (max-width: 768px) {
    .gallery a { width: calc(50% - 20px); } /* 2 per row */
}

@media (max-width: 480px) {
    .gallery a { width: 100%; margin-right: 0; } /* 1 per row */
}



/* FsLightbox wrapper around the image */
.fslightbox-slide .lightbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;                  /* padding around image */
    background-color: #fff !important; /* white background */
    border-radius: 10px;            /* optional rounded corners */
    max-width: calc(100% - 40px);   /* account for padding */
    max-height: calc(100% - 40px);
    box-sizing: border-box;
    margin: 20px auto;              /* center in lightbox */
}

/* Image inside wrapper */
.fslightbox-slide .lightbox-wrapper img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 5px; /* optional */
}

