/* Gallery Page Styles */
.gallery-page-section {
    padding: 50px 0 200px 0;
}

.gallery-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.gallery-page-title {
  color: #000;
  font-family: Golden;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.5px;
  margin: 0;
}

.gallery-page-filters {
    display: flex;
    gap: 50px;
}

.gallery-filter-btn {
  color: #F69541;
  font-family: Golden;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 1.1px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.gallery-filter-btn:hover {
    color: #F76A32;
}

.gallery-filter-btn.active {
    color: #9A9A9A;
}

/* Home Gallery Matrix Layout Adapted */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    transition: opacity 0.3s;
}

.gallery-row {
    display: flex;
    gap: 15px; 
    height: 425px; /* Fixed height for the row */
}

.gallery-col {
    flex: 1;
    display: flex;
    gap: 15px;
    height: 100%;
}

.gl-item {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: transform 0.3s, opacity 0.3s, filter 0.3s;
    cursor: pointer; /* we changed from zoom-in so clicks feel natural for video too */
}
.gl-item:hover {
    transform: scale(1.02);
}

/* Filtering styles to fade out disabled items instead of `display: none` */
/* Because `display: none` breaks flexbox width distributions in this row/col layout */
.gl-item.filtered-out {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(1);
}

.gl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Flex sizing within column */
.gl-item.gl-full {
    height: 100%;
}


/* Videos Overlay & Play */
.g-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.g-item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.g-item-play svg {
    width: 67px;
    height: 67px;
    margin-left: 0;
}

/* Responsive Overrides */
@media screen and (max-width: 1279px) {
    .gallery-row {
        height: 225px;
    }
    .gallery-page-section {
      padding: 40px 0 100px 0;
    } 
    .gallery-page-title {
        font-size: 40px;
    }
    .gallery-page-header {
        margin-bottom: 15px;
    }
    .gallery-filter-btn {
        font-size: 20px;
    }
}

@media screen and (max-width: 726px) {
    .gallery-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .gallery-row {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    .gallery-col {
        gap: 10px;
        /* If a column had 2 images side-by-side, they will still be side-by-side but with auto height or fixed? */
        /* Let's give gl-item a fixed height on mobile or let them define aspect ratio */
    }
    
    .gl-item.gl-full, .gl-item.gl-half {
        
    }
    
    .gallery-grid {
        gap: 10px;
    }
    .gallery-page-title {
        font-size: 27px;
    }
    .gallery-filter-btn {
        font-size: 17px;
    }
}
