.content-wrap {
  overflow: hidden;

  @media (min-width:768px) {
    margin-left: 225px
  }

  @media (min-width:992px) {
    margin-left: 300px
  }

  @media (min-width:1400px) {
    margin-left: 380px
  }
}

.sidebar-wrap {
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  height: 100vh;
  width: 225px;

  @media (min-width:992px) {
    width: 300px;
  }
  @media (min-width:1400px) {
    width: 380px;
  }

  hr {
    width: 7em;
  }
}

.hover-list {
  &:hover a {
    opacity: 0.6;
  }

  a {
    text-decoration: none;
    &:hover {
      opacity: 1;
    }
  }
}

/* Grid container */
.grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Grid items */
  .grid-item {
    width: calc(33.333% - 25px);
    margin-bottom: 25px;
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .grid-item:hover {
    transform: translateY(-5px);
  }
  
  /* Different widths for different screen sizes */
  @media (max-width: 1199px) {
    .grid-item {
      width: calc(50% - 25px);
    }
  }
  
  @media (max-width: 600px) {
    .grid-item {
      width: 100%;
    }
  }
  
  /* Image styling */
  .grid-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Slider overlay */
  .slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: none;
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    @media (min-width:768px) {
      margin-left: 225px;
      width: calc(100% - 225px);
    }
    @media (min-width:992px) {
      margin-left: 300px;
      width: calc(100% - 300px);
    }
    @media (min-width:1400px) {
      margin-left: 380px;
      width: calc(100% - 380px);
    }
  }
  
  .slider-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .slider-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* Navigation buttons */
  .slider-nav {
    position: absolute;
    top: 50%;
    width: calc(100% + 100px);
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }
  
  .slider-nav button {
    color: var(--black);
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        background-color: var(--off-white);
    }
  }

  @media (max-width:767px) {
    .slider-nav button {
      background-color: var(--off-white);
    }

    .prev-btn {
      transform: translateX(25%);
    }

    .next-btn {
      transform: translateX(-25%);
    }
  }
  
  /* Close button */
  .close-slider {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--black);
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 28px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-slider:hover {
    background-color: var(--off-white);
  }

@media (min-width:768px) {
  .page-home.slider-open .close-slider {
    display: none;
  }
}
  
  /* Image counter */
  .slider-counter {
    margin-top: 20px;
    font-size: 16px;
  }

  .image-caption {
    @media(max-width:1199px) {
      font-size: var(--fs-sm);
    }
  }
