/* Projects Section */
body.modal-open {
    overflow: hidden;
}
.main-content.blurred {
    transition: filter 0.3s ease-in-out;
}
.instagram{
    padding: 80px 0 0;
}
.instagram .section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#gallery {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 150px;
}

.cols {
    -moz-column-count: 4;
    -moz-column-gap: 8px;
    -webkit-column-count: 4;
    -webkit-column-gap: 0;
    column-count: 4;
    column-gap: 8px;
    column-width: 25%;
}

.instagram-wrapper .box {
    margin-bottom: 10px;
    display: block;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 0;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.instagram-wrapper .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.instagram-wrapper .box.one {
    height: 150px;
    background-color: #9e9eec;
}

.instagram-wrapper .box.two {
    height: 200px;
    background-color: #8d8dee;
}

.instagram-wrapper .box.three {
    background-color: #7a7aec;
    height: 250px;
}

.instagram-wrapper .box.four {
    background-color: #6464ec;
    height: 300px;
}

.instagram-wrapper .box.five {
    background-color: #5454f0;
    height: 350px;
}

.instagram-wrapper .box.six {
    background-color: #3b3bf3;
    height: 150px;
}

/* Optional: Hover effect */
.instagram-wrapper .box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Popup Style */
.instagram .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.instagram  .popup img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.instagram  .popup .close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.instagram  .popup .close:hover {
    color: #bbb;
}
.instagram  .popup  .arrow {
    position: absolute;
    top: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #414141;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    transition: 0.3s ease;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram  .popup .arrow:hover {
    color: #000;
}

.instagram  .popup .arrow.left {
    left: 20px;
    transform: translateY(-50%);
}

.instagram  .popup .arrow.right {
    right: 20px;
    transform: translateY(-50%);
}


@media (max-width:768px) {
    /* Projects Section 768*/
  .instagram .instagram-introduction {
      flex-wrap: wrap;
      margin-bottom: 40px;
  }
  .instagram-introduction .section-title-wrapper {
      width: 100%;
      margin-bottom: 18px;
  }
  .instagram-introduction .instagram-description {
      width: 100%;
      text-align: start;
      align-items: start;
  }
}