
.gallery-page {
padding-top: 30px;
padding-bottom: 40px;
}

.gallery-header {
text-align: center;
margin-bottom: 25px;
}

.gallery-title {
margin-bottom: 10px;
font-size: 30px;
font-weight: 600;
}

.gallery-description {
margin: 0 auto;
max-width: 800px;
color: #666;
}

.gallery-filter-wrapper {
max-width: 450px;
margin: 0 auto 30px;
}

.gallery-filter-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}

.gallery-category-select {
width: 100%;
min-height: 42px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
padding: 8px 12px;
cursor: pointer;
}

.gallery-grid {
margin-left: -10px;
margin-right: -10px;
}

.gallery-item {
padding-left: 10px;
padding-right: 10px;
margin-bottom: 25px;
}

.gallery-item.gallery-hidden {
display: none !important;
}

.img-wrapper {
position: relative;
overflow: hidden;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-image-link {
position: relative;
display: block;
overflow: hidden;
text-decoration: none;
}

.gallery-image {
display: block;
width: 100%;
height: 260px;
object-fit: cover;
transition: transform 0.3s ease;
}

.gallery-image-link:hover .gallery-image {
transform: scale(1.05);
}

.img-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.35);
opacity: 0;
transition: opacity 0.25s ease;
}

.gallery-image-link:hover .img-overlay,
.gallery-image-link:focus .img-overlay {
opacity: 1;
}

.gallery-plus {
width: 55px;
height: 55px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.95);
color: #333;
font-size: 36px;
line-height: 1;
font-weight: 300;
}

.img-wrapper figcaption {
padding: 12px 10px;
text-align: center;
font-size: 15px;
font-weight: 500;
color: #333;
background: #fff;
}

.gallery-no-result {
padding: 40px 20px;
text-align: center;
color: #777;
font-size: 18px;
}

.gallery-no-result[hidden] {
display: none !important;
}


.gallery-lightbox {
position: fixed;
z-index: 99999;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
}

.gallery-lightbox.gallery-lightbox-open {
display: block;
}

.gallery-lightbox-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox-content {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 70px 90px;
}

.gallery-lightbox-image-wrapper {
position: relative;
max-width: 90vw;
max-height: 85vh;
display: flex;
flex-direction: column;
align-items: center;
}

.gallery-lightbox-image {
display: block;
max-width: 90vw;
max-height: 78vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: 3px;
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-caption {
width: 100%;
margin-top: 12px;
color: #fff;
text-align: center;
font-size: 17px;
line-height: 1.4;
}

.gallery-lightbox-close {
position: absolute;
z-index: 5;
top: 20px;
right: 25px;
width: 48px;
height: 48px;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.95);
color: #222;
font-size: 34px;
line-height: 42px;
text-align: center;
cursor: pointer;
padding: 0;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
background: #fff;
outline: 2px solid #fff;
outline-offset: 3px;
}

.gallery-lightbox-nav {
position: absolute;
z-index: 5;
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 70px;
border: 0;
border-radius: 5px;
background: rgba(255, 255, 255, 0.9);
color: #222;
font-size: 32px;
line-height: 60px;
cursor: pointer;
padding: 0;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus {
background: #fff;
outline: 2px solid #fff;
outline-offset: 3px;
}

.gallery-lightbox-prev {
left: 20px;
}

.gallery-lightbox-next {
right: 20px;
}

.gallery-lightbox-nav.gallery-nav-disabled {
display: none;
}



body.gallery-lightbox-active {
overflow: hidden;
}

@media (max-width: 991px) {


.gallery-image {
    height: 230px;
}

.gallery-lightbox-content {
    padding-left: 70px;
    padding-right: 70px;
}

.gallery-lightbox-image {
    max-width: 82vw;
    max-height: 75vh;
}

}

@media (max-width: 767px) {


.gallery-page {
    padding-top: 20px;
}

.gallery-title {
    font-size: 25px;
}

.gallery-image {
    height: 220px;
}

.gallery-lightbox-content {
    padding: 65px 45px 50px;
}

.gallery-lightbox-image {
    max-width: 88vw;
    max-height: 72vh;
}

.gallery-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 30px;
}

.gallery-lightbox-nav {
    width: 42px;
    height: 55px;
    font-size: 25px;
}

.gallery-lightbox-prev {
    left: 8px;
}

.gallery-lightbox-next {
    right: 8px;
}

.gallery-lightbox-caption {
    font-size: 15px;
}


}

@media (max-width: 575px) {


.gallery-image {
    height: 200px;
}

.gallery-filter-wrapper {
    width: 100%;
}

.gallery-lightbox-content {
    padding-left: 35px;
    padding-right: 35px;
}

.gallery-lightbox-image {
    max-width: 92vw;
    max-height: 68vh;
}

.gallery-lightbox-nav {
    width: 36px;
    height: 48px;
    font-size: 21px;
}

.gallery-lightbox-prev {
    left: 4px;
}

.gallery-lightbox-next {
    right: 4px;
}


}
