@charset "utf-8";
/* CSS Document */

.tab {
    width: 100%;
    margin: 0;
    padding: 0;
}

.tab:after {
    content: "";
    display: table;
    clear: both;
}

.mainpic {
    width: auto;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mySlides {
    display: none;
}

/* ระบุเฉพาะ img ใน slideshow เท่านั้น */
.slideshow-container img {
    vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

/* Next & previous buttons */
.prev {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 3px 0 0 3px;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@media only screen and (max-width: 300px) {
    .prev, .next, .text {
        font-size: 11px;
    }
}

/* ===== IPAD แนวตั้ง MODE ===== */
@media (min-width: 769px) {
    .mainpic {
        height: auto;
    }
}
/* ===== PC MODE ===== */
@media (min-width: 1080px) {
    .mainpic {
        height: auto;
    }
}