/* IA Creation Page Specific Styles */

/* Flickity Base Styles */
.flickity-enabled {
    position: relative;
    opacity: 1;
    /* Ensure visible */
}

/* Removed flickity-resize logic as it was causing issues */

.flickity-viewport {
    overflow: hidden;
    position: relative;
    transition: height 0.2s;
}

.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Fix for stretched/long images */
.main-carousel .carousel-cell {
    width: 100%;
    height: auto;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-carousel .carousel-cell img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 500px !important;
    /* STRICT CONSTRAINT */
    object-fit: contain;
    width: auto;
    /* Prevent width stretching if height is constrained */
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    .main-carousel .carousel-cell img {
        max-height: 350px !important;
    }
}

.flickity-button {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    color: #333;
}

.flickity-button:hover {
    background: white;
    cursor: pointer;
}

.flickity-button:disabled {
    opacity: 0.3;
    cursor: auto;
    pointer-events: none;
}

.flickity-button-icon {
    fill: currentColor;
}

.flickity-prev-next-button {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.flickity-prev-next-button.previous {
    left: 10px;
}

.flickity-prev-next-button.next {
    right: 10px;
}

.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -25px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: #333;
    border-radius: 50%;
    opacity: 0.25;
    cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1;
}

/* Custom IA Page Styles from Reference */
.page-ia-creation .content-block {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Typography Overrides to match reference aesthetics */
.font_6gar96r0a {
    font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.font_5sprdsmtg {
    font-family: 'VCR_OSD_MONO', monospace;
    font-weight: 400;
}

/* Image/Media Wrappers */
.ce-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Video Styling */
.ce-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Layout adjustments to match reference exactly */
.row-ia {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .page-ia-creation .content-block {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .flickity-prev-next-button {
        width: 30px;
        height: 30px;
    }
}