/* Instagram kapsulu — style.css-dən köçürülüb.
   Səhifəyə qoşulur: <link rel="stylesheet" href="/addons/socials/instagram/assets/addon.css"> */

/* ================== BAŞLIQ ================== */
.instagram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 0 25px;
}

.instagram-header-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: black;
}

.instagram-header-username {
    display: inline-block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--main-color);
    font-weight: 600;
}

.instagram-header-username:hover {
    text-decoration: underline;
}

.instagram-follow-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

@media (max-width: 600px) {
    .instagram-header {
        justify-content: center;
        text-align: center;
    }

    .instagram-header-title {
        font-size: 19px;
    }
}

/* ================== GRID ================== */
.instagram-images {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.instagram-image {
    width: 25%;
    padding: 0 10px 20px;
}

.instagram-ratio {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 100%;
}

.instagram-image-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: .3s all;
    overflow: hidden;
    background-color: var(--light-color);
}

.instagram-image-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: .3s all;
    opacity: 0;
}

.instagram-image-link:hover:before {
    opacity: 1;
}

/* ================== HOVER: BƏYƏNMƏ / ŞƏRH ================== */
.instagram-image-details {
    color: white;
    z-index: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    opacity: 0;
    transition: .3s all;
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.instagram-image-link:hover .instagram-image-details {
    opacity: 1;
}

.instagram-stat {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ================== VİDEO ================== */
.instagram-icon-area {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.instagram-icon-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.instagram-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    background: var(--main-color);
    border-radius: 50%;
    font-size: 24px;
    opacity: 0;
    transition: .5s all;
}

.instagram-video:hover .instagram-icon {
    opacity: 1;
    width: 75px;
    height: 75px;
    line-height: 75px;
}

/* ================== CAROUSEL (Swiper) ================== */
.instagram-ratio-carousel {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.instagram-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.instagram-carousel,
.instagram-carousel .swiper-wrapper,
.instagram-carousel .swiper-slide {
    height: 100%;
}

.instagram-nav-button {
    position: absolute;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 1;
    font-size: 36px;
    text-shadow: 0 0 15px black;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-button-prev {
    left: 0;
}

.instagram-button-next {
    right: 0;
}

/* ================== DAHA ÇOX GÖSTƏR ================== */
.next-images {
    width: 100%;
    padding: 0 15px;
}

.next-image-button {
    display: table;
    margin: 0 auto;
    background: var(--main-color);
    color: white;
    padding: 10px 25px;
    line-height: 1.3;
    font-weight: 600;
    cursor: pointer;
    transition: .15s all;
}

.next-image-button:hover {
    background: var(--second-color);
}

.next-image-button::-moz-selection {
    background: transparent;
}

.next-image-button::selection {
    background: transparent;
}

/* ================== RESPONSIVE ================== */
@media (min-width: 601px) and (max-width: 999px) {
    .instagram-image {
        width: 33.3%;
    }
}

@media (max-width: 600px) {
    .instagram-image {
        width: 50%;
    }
}