/* ================================================
   TEAM GLAM — Multi-Photo Post Carousel CSS
   ================================================ */

.tg-post-carousel-wrap {
    position: relative;
    width: 100%;
    margin: 44px 0;
    box-sizing: border-box;
}

.tg-post-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tg-post-carousel-wrap .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.tg-post-carousel-wrap .swiper-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    height: auto;
}

/* ── Portrait Slide Card ── */
.tg-post-carousel-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f7f7f7;
}

.tg-post-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.tg-post-carousel-slide:hover .tg-post-carousel-img {
    transform: scale(1.04);
}

/* ── Navigation Arrows ── */
.tg-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #111111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: background-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    outline: none;
}

.tg-carousel-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.tg-carousel-prev {
    left: 16px;
}

.tg-carousel-next {
    right: 16px;
}

.tg-carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.tg-carousel-btn.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1024px) {
    .tg-carousel-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 767px) {
    .tg-post-carousel-slide {
        aspect-ratio: 4 / 5;
    }
    .tg-carousel-prev {
        left: 8px;
    }
    .tg-carousel-next {
        right: 8px;
    }
}
