/*
 * Styles for the Frame Types Modal
 */

/* Style for the trigger button to make it stand out */
#view-frames-btn {
    width: 100%;
    text-align: center;
}

/* The Modal Overlay (hidden by default) */
.frame-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-animation: fadeIn 0.3s;
    animation: fadeIn 0.3s;
}

/* Modal Content Box */
.frame-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    position: relative;
    border-radius: 8px;
}

/* The Close Button */
.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Center the modal title */
.frame-modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Swiper Carousel Styles */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide content vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    flex-direction: column;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 4px;
}

.swiper-caption {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* Style for swiper navigation arrows */
.swiper-button-next, .swiper-button-prev {
    color: #222; /* A color that works with your brand */
}

/* Style for swiper pagination bullets */
.swiper-pagination-bullet-active {
    background: #222; /* A color that works with your brand */
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Fade-in animation */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}