.gallery{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:15px;
}

.gallery img{
width:100%;
height:250px;
object-fit:cover;
cursor:pointer;
border-radius:6px;
}

#lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

#lightbox img{
max-width:90%;
max-height:90%;
}

#close{
position:absolute;
top:20px;
right:30px;
font-size:40px;
color:white;
cursor:pointer;
}

#prev, #next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:60px;
color:white;
cursor:pointer;
user-select:none;
}

#prev{ left:30px; }
#next{ right:30px; }

.gallery-section{
padding:80px 0;
background:#ffffff;
}

.sec-title{
text-align:center;
margin-bottom:40px;
}

.sec-title h2{
font-size:36px;
font-weight:700;
color:#050da5;
margin-bottom:15px;
}

.sec-title p{
max-width:700px;
margin:0 auto;
font-size:16px;
color:#4219e3;
line-height:1.6;
}

/* Tablet */
@media (max-width: 992px){
.gallery{
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:12px;
}

.sec-title h2{
font-size:30px;
}

.sec-title p{
font-size:15px;
}
}

/* Mobile */
@media (max-width: 600px){
.gallery{
grid-template-columns:1fr;
gap:10px;
}

.gallery img{
height:220px;
}

.sec-title h2{
font-size:24px;
}

.sec-title p{
font-size:14px;
padding:0 15px;
}

/* butonat e lightbox më të vegjël */
#prev, #next{
font-size:40px;
}

#close{
font-size:30px;
top:15px;
right:20px;
}

}

.work-groups{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
margin:50px 0;
}

.work-box{
background:#fff;
border:1px solid #e5e5e5;
border-radius:12px;
padding:30px;
box-shadow:0 8px 25px rgba(0,0,0,0.06);
}

.work-box h3{
font-size:28px;
font-weight:700;
color:#0b2c6b;
margin-bottom:20px;
text-align:center;
}

.work-box ul{
list-style:none;
padding:0;
margin:0;
}

.work-box ul li{
margin-bottom:12px;
padding-bottom:12px;
border-bottom:1px solid #f0f0f0;
}

.work-box ul li:last-child{
margin-bottom:0;
padding-bottom:0;
border-bottom:none;
}

.work-box ul li a{
text-decoration:none;
color:#333;
font-size:16px;
font-weight:500;
transition:0.3s;
display:block;
}

.work-box ul li a:hover{
color:#e53935;
padding-left:6px;
}

@media (max-width: 992px){
.work-groups{
grid-template-columns:1fr;
gap:20px;
}

.work-box h3{
font-size:24px;
}
}

@media (max-width: 600px){
.work-box{
padding:20px;
}

.work-box h3{
font-size:22px;
}

.work-box ul li a{
font-size:15px;
}
}

/* =========================
   GALLERY WORK STYLES
   ========================= */

.gallery-work-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  margin: 60px auto;
}

.gallery-work-box {
  width: 100%;
  max-width: 520px;
}

.gallery-work-box .category-widget {
  position: relative;
  display: block;
  background: var(--theme-color);
  padding: 50px 70px 51px 70px;
  border-radius: 5px;
  height: 100%;
}

.gallery-work-box .widget-title {
  position: relative;
  display: block;
  margin-bottom: 40px;
  padding-bottom: 3px;
}

.gallery-work-box .widget-title:before {
  position: absolute;
  content: '';
  background: #fff;
  width: 70px;
  height: 1px;
  left: 0;
  bottom: 0;
}

.gallery-work-box .widget-title:after {
  position: absolute;
  content: '';
  background: #fff;
  width: 70px;
  height: 1px;
  left: 0;
  bottom: 3px;
}

.gallery-work-box .widget-title h3 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.gallery-work-box .widget-content {
  position: relative;
  display: block;
}

.gallery-work-box .widget-content h2 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  color: #fff;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.gallery-work-box .widget-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 0 25px 0;
}

.gallery-work-box .category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-work-box .category-list li {
  position: relative;
  display: block;
}

.gallery-work-box .category-list li a {
  position: relative;
  display: block;
  font-size: 25px;
  line-height: 25px;
  font-family: var(--title-font);
  color: #fff;
  font-weight: 500;
  padding: 8px 0;
  z-index: 1;
  text-decoration: none;
  transition: all 500ms ease;
}

.gallery-work-box .category-list li a:hover,
.gallery-work-box .category-list li a.current {
  padding-left: 15px;
}

.gallery-work-box .category-list li a span {
  position: relative;
  padding-left: 20px;
}

.gallery-work-box .category-list li a span:before {
  position: absolute;
  content: '\e922';
  font-family: 'icomoon';
  left: 0;
  top: -2px;
  font-size: 14px;
  font-weight: 700;
}

.gallery-work-box .category-list li a:before {
  position: absolute;
  content: '';
  background: var(--secondary-color);
  left: -70px;
  top: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: all 500ms ease;
}

.gallery-work-box .category-list li a:hover:before,
.gallery-work-box .category-list li a.current:before {
  width: calc(100% + 140px);
}

/* Responsive */
@media (max-width: 991px) {
  .gallery-work-wrapper {
    flex-direction: column;
  }

  .gallery-work-box {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .gallery-work-box .category-widget {
    padding: 35px 30px 36px 30px;
  }

  .gallery-work-box .widget-title h3,
  .gallery-work-box .widget-content h2 {
    font-size: 30px;
    line-height: 40px;
  }

  .gallery-work-box .category-list li a {
    font-size: 20px;
    line-height: 24px;
  }

  .gallery-work-box .category-list li a:before {
    left: -30px;
  }

  .gallery-work-box .category-list li a:hover:before,
  .gallery-work-box .category-list li a.current:before {
    width: calc(100% + 60px);
  }
}