.maincontent {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}

.gallery-global {
    padding: 50px 15px 100px;
}
.gallery-global h2 {
    text-align: left;
    font-style: italic;
    font-size: 1.6em;
    max-width: 1450px;
    width: 100%;
    border-bottom: 2px solid var(--brown);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 25px auto 0;
}
.gallery-wrapper h6 {
    font-size: 1.25em;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-color);
    text-align: center;
    flex: auto;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}
.gallery-item {
    max-width: 24.5%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px .25% 0;
}
.gallery-item img {
    width: auto;
    height: 125%;
}
.gallery-item img.vertical-img {
    width: 125%;
    height: auto;
}
.gallery-item i {
    position: absolute;
    top: 45%;
    left: 50%;
    font-size: 3.5em;
    border-radius: 50%;
    margin: -41px 0 0 -41px;
    padding: 10px;
    color: #000;
    opacity: 0;
    transition: all .25s;
}
.gallery-item:hover i {
    top: 50%;
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
}

.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.gallery-caption {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(15, 15, 15, .8);
    color: #fff;
    padding: 2px 10px;
    border-radius: 25px;
}

@media screen and (max-width: 1200px) {
    .gallery-item {
        flex: 33%;
        max-width: 32.5%;
    }
}
@media screen and (max-width: 800px) {
    .gallery-item {
        flex: 50%;
        max-width: 49.5%;
    }
}
@media screen and (max-width: 500px) {
    .gallery-item {
        flex: 100%;
        max-width: 100%;
        height: auto;
    }
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}
.video-gallery-section {
      margin: 3rem auto;
      padding: 2rem 1rem;
      background: #f8f9fc;
      border-radius: 18px;
      max-width: 1200px;
    }
    .video-gallery-section h2 {
      text-align: center;
      margin-bottom: 2rem;
      font-size: 2rem;
      font-weight: 700;
    }
    .video-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      justify-content: center;
      align-items: start;
    }
    .video-iframe-wrapper {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #ddd;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    }
    .video-iframe-wrapper iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }
    @media (max-width: 700px) {
      .video-gallery-section {
        padding: 1rem 0.5rem;
      }
      .video-grid {
        gap: 1rem;
      }
    }