/* START : 공유버튼 모음 (공모전) */
.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-buttons i {
    font-size: 40px !important; /* ← 이거 중요 */
}

/* START : 공유버튼 모음(공모전) */


/* START : 상세보기 */

.contest-container-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    box-sizing: border-box;
}


.contest-desc-container {
    gap: 20px;
    width: 100%;
    margin: auto;
    background: white;
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.contest-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.contest-detail-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}


.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    align-items: stretch;
}

.info-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    padding: 8px 10px;
    background-color: #fff;
    margin: 0;
    line-height: 1.2;
    box-sizing: border-box;
}

.info-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
}

.info-value {
    font-size: 15px;
    color: #555;
}

.contest-desc-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 20px;
    margin: auto;
    align-items: start;
    width: 100%;
}

.post-image-wrapper {
    width: 300px;
    aspect-ratio: 3 / 4; /* ��� 3:4 세로형 비율 유지 */
    overflow: hidden;
    border-radius: 6px;
    background-color: #f8f8f8;
    flex-shrink: 0;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ 비율 유지하면서 잘라도 꽉 채움 */
    display: block;
}



/* END : 상세보기*/

/* START :상세보기 모바일 대응 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* 한 열로 떨어지게 */
    }

    .contest-desc-wrapper {
        grid-template-columns: 1fr;
    }
}
/* END : 상세보기 모바일 대응 */

/* START : 이미지 모달 스타일 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #bbb;
}

.post-image-wrapper img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-image-wrapper img:hover {
    transform: scale(1.03);
}
/* END : 이미지 모달 스타일 */
