/* Showcase Modal Styles */
.showcase-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.showcase-modal-content {
    background-color: #fefefe47;
    padding: 15px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 1400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    min-height: 700px;
    max-height: 95vh;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Close button */
.showcase-modal .close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.showcase-modal .close:hover,
.showcase-modal .close:focus {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Modal Swiper Container */
.modal-swiper-container {
    width: 100%;
    height: calc(100% - 180px);
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
}

.showcase-swiper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.showcase-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefefe00;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

.showcase-swiper .swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Swiper Navigation Buttons */
.showcase-swiper .swiper-button-next,
.showcase-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.showcase-swiper .swiper-button-next:hover,
.showcase-swiper .swiper-button-prev:hover {
    background: rgba(0, 123, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.showcase-swiper .swiper-button-next::after,
.showcase-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.showcase-swiper .swiper-pagination {
    bottom: 10px;
}

.showcase-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.showcase-swiper .swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.2);
}

/* Description section */
.showcase-description {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 30, 30, 0.9));
    color: white;
    padding: 15px 20px;
    margin: 0;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.showcase-description p {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    color: #fff;
    text-align: center;
    max-width: 100%;
}
.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 100px);
    margin-bottom: 15px;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    flex: 1;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .showcase-modal-content {
        width: 95%;
        padding: 12px;
        min-height: 500px;
        max-height: 90vh;
    }
    
    .modal-image-container {
        height: calc(100% - 80px);
        padding: 8px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .modal-image-container img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .showcase-description {
        padding: 12px 15px;
        min-height: 45px;
        border-radius: 0 0 10px 10px;
    }
    
    .showcase-description p {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 400;
    }
    
    /* Contact Form Tablet Styles */
    #contactFormModal .showcase-modal-content {
        max-width: 500px;
        padding: 25px;
    }
    
    #contactFormModal h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    #contactFormModal input,
    #contactFormModal textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #contactFormModal button {
        padding: 10px 25px;
        font-size: 15px;
        min-width: 110px;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .showcase-modal-content {
        width: 98%;
        padding: 8px;
        min-height: 400px;
        max-height: 85vh;
    }
    
    .modal-image-container {
        height: calc(100% - 70px);
        padding: 5px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .modal-image-container img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .showcase-description {
        padding: 10px 15px;
        min-height: 40px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(30, 30, 30, 0.85));
        border-radius: 0 0 10px 10px;
    }
    
    .showcase-description p {
        font-size: 13px;
        line-height: 1.3;
        font-weight: 400;
    }
    
    .showcase-modal .close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        right: 10px;
        top: 5px;
    }
    
    /* Contact Form Mobile Styles */
    #contactFormModal .showcase-modal-content {
        width: 95%;
        max-width: 400px;
        padding: 20px;
        min-height: auto;
    }
    
    #contactFormModal h3 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    #contactFormModal .form-group {
        margin-bottom: 15px;
    }
    
    #contactFormModal label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    #contactFormModal input,
    #contactFormModal textarea {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    #contactFormModal textarea {
        min-height: 80px;
    }
    
    #contactFormModal .form-buttons {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    #contactFormModal button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .showcase-modal-content {
        width: 98%;
        padding: 8px;
        min-height: 200px;
        max-height: 75vh;
    }
    
    .modal-image-container {
        height: calc(100% - 80px);
        padding: 5px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .modal-image-container img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .showcase-description {
        padding: 10px 12px;
        min-height: 45px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 30, 30, 0.8));
        border-radius: 0 0 10px 10px;
    }
    
    .showcase-description p {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 400;
    }
    
    .showcase-modal .close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        right: 8px;
        top: 3px;
    }
    
    /* Contact Form Small Mobile Styles */
    #contactFormModal .showcase-modal-content {
        width: 98%;
        max-width: 350px;
        padding: 15px;
    }
    
    #contactFormModal h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    #contactFormModal .form-group {
        margin-bottom: 12px;
    }
    
    #contactFormModal label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #contactFormModal input,
    #contactFormModal textarea {
        padding: 7px 10px;
        font-size: 13px;
    }
    
    #contactFormModal textarea {
        min-height: 70px;
    }
    
    #contactFormModal .form-buttons {
        margin-top: 15px;
    }
    
    #contactFormModal button {
        padding: 8px 15px;
        font-size: 13px;
    }
}

.kanitfont {
    font-family: 'Kanit', sans-serif;
}

/* Contact Form Modal Styles */
#contactFormModal .showcase-modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 30, 30, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    min-height: auto;
    padding: 30px;
    overflow-y: auto;
}

#contactFormModal h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#contactFormModal .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#contactFormModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Kanit', sans-serif;
}

#contactFormModal input[type="text"],
#contactFormModal input[type="email"],
#contactFormModal input[type="tel"],
#contactFormModal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

#contactFormModal input:focus,
#contactFormModal textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#contactFormModal textarea {
    resize: vertical;
    min-height: 100px;
}

#contactFormModal .form-buttons {
    text-align: center;
    margin-top: 25px;
    gap: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#contactFormModal button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    min-width: 120px;
}

#contactFormModal button[type="submit"] {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

#contactFormModal button[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

#contactFormModal button[type="button"] {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

#contactFormModal button[type="button"]:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
}

#contactFormModal .required {
    color: #ff6b6b;
    margin-left: 3px;
}
