/* =========================
   BASE STYLES
========================= */

.contest-page {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.contest-title {
    text-align: center;
    margin-bottom: 25px;
}

/* =========================
   DESKTOP GRID (6 IMAGES)
========================= */

.contest-gallery {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.contest-image {
    text-align: center;
}

.contest-image img {
    width: 100%;
    height: auto;
    border-radius: 10px !important;
    display: block;
    padding: 0px 7px;
}

.vote-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: #DD3707;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.vote-btn:hover {
    background: #135e96;
}

/* =========================
   DESCRIPTION
========================= */

.contest-description {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
    text-align:center;
}

/* =========================
   VISIBILITY RULES
========================= */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

/* =========================
   MOBILE (SLIDER MODE)
========================= */

@media (max-width: 768px) {

    /* Hide desktop grid */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile slider */
    .mobile-only {
        display: block !important;
    }

    /* Slick slider fix */
    .contest-slider .slide {
        text-align: center;
    }

    .contest-slider img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    .vote-btn {
        width: 100%;
        margin-top: 12px;
    }
}


/* =========================
   SLICK ARROWS (ICON ONLY)
========================= */

.contest-slider {
    position: relative;
}

/* Arrow buttons */
.contest-slider .slick-prev,
.contest-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Remove default text */
.contest-slider .slick-prev,
.contest-slider .slick-next {
    font-size: 0;
}

/* Arrow icons */
.contest-slider .slick-prev:before,
.contest-slider .slick-next:before {
    font-family: dashicons;
    font-size: 24px;
    color: #fff;
    line-height: 44px;
}

/* Left arrow */
.contest-slider .slick-prev {
    left: 10px;
}

.contest-slider .slick-prev:before {
    content: "\f341"; /* Dashicons arrow-left */
}

/* Right arrow */
.contest-slider .slick-next {
    right: 10px;
}

.contest-slider .slick-next:before {
    content: "\f345"; /* Dashicons arrow-right */
}

/* Mobile fine-tune */
@media (max-width: 768px) {
    .contest-slider .slick-prev,
    .contest-slider .slick-next {
        width: 38px;
        height: 38px;
    }

    .contest-slider .slick-prev:before,
    .contest-slider .slick-next:before {
        font-size: 20px;
        line-height: 38px;
    }
}

/* DETAIL PAGE*/

.image-detail-page {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.image-detail-left {
    width: 50%;
}

.image-detail-right {
    width: 50%;
    text-align: center;
}

.detail-image {
    width: 100%;
    max-width: 450px;
    cursor: pointer;
    border-radius: 6px;
}

/* Vote section */
.vote-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.vote-section input {
    padding: 8px;
    width: 60%;
}

.vote-section button {
    padding: 8px 16px;
    background: #DD3707;
    color: #fff;
    border: none;
    cursor: pointer;
}

.vote-section button:hover {
    background: #135e96;
}

/* MODAL */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    display: block;
    max-width: 90%;
    margin: auto;
    margin-top: 5%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
    .image-detail-page {
        flex-direction: column;
    }

    .image-detail-left,
    .image-detail-right {
        width: 100%;
    }
}

