
.fancybox__counter { display: none; }
.fancybox__button--slideshow { display: none; }
.is-prev { display: none }
.is-next { display: none }
div.toolbar { display: none; }
#viewerContainer { top: 0; }
.pdfViewer .page { margin: 0; border: 0; padding: 0; }

/* 수상작 카드 스타일 */
.gallery-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
    margin-bottom: 2rem;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.gallery-card .card-img-wrapper {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}
.gallery-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover .card-img-top {
    transform: scale(1.05);
}
.gallery-card .card-body {
    padding: 1.25rem;
}
.gallery-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
}
.gallery-card .award-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    transform: scale(1);
    transition: transform 0.2s ease;
}
.gallery-card:hover .award-badge {
    transform: scale(1.05);
}
.award-badge.grade-1 {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}
.award-badge.grade-2 {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}
.award-badge.grade-3 {
    background: linear-gradient(135deg, #E5E5E5 0%, #B0B0B0 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}
.award-badge.grade-4 {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}
.award-badge.grade-5 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* 준비중 메시지 스타일 */
.preparing-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.preparing-icon {
    animation: pulse 2s infinite;
}

.preparing-animation .spinner-border {
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 등급별 섹션 스타일 */
.grade-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.grade-header {
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.grade-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.grade-icon-container:hover {
    transform: scale(1.05);
}

.grade-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.grade-title {
    font-size: 1.8rem;
    margin: 0;
    flex: 1;
}

/* 등급별 색상 */
.grade-icon-container.grade-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.grade-icon-container.grade-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
}

.grade-icon-container.grade-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.4);
}

.grade-icon-container.grade-4 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.grade-icon-container.grade-5 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.grade-title {
    font-size: 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 등급별 섹션 간격 조정 */
.grade-section:not(:last-child) {
    border-bottom: 2px dashed #dee2e6;
    padding-bottom: 3rem;
}

/* 작품 목록 스타일 */
.works-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* 대상(1등급) 제외한 나머지 등급은 4개씩 그리드로 표시 */
.works-list.grid-layout {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	flex-direction: unset;
}

.work-item-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.work-item-link:hover {
	text-decoration: none;
	color: inherit;
}

.work-item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

/* 그리드 레이아웃일 때는 세로 방향으로 변경 */
.works-list.grid-layout .work-item {
	flex-direction: column;
	text-align: center;
	gap: 1rem;
	padding: 1rem;
}

.work-item-link:hover .work-item {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	border-color: #007bff;
}


.work-thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 그리드 레이아웃일 때는 썸네일 크기 조정 */
.works-list.grid-layout .work-thumbnail {
    width: 100%;
    height: 120px;
    max-width: 200px;
}

/* 수기(PDF)일 때만 작은 크기 */
.work-item.pdf-work .work-thumbnail {
    width: 100px;
    height: 70px;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-thumbnail:hover img {
    transform: scale(1.05);
}

/* PDF 아이콘 스타일 */
.pdf-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}


.pdf-icon {
    font-size: 1.8rem;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pdf-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.work-info {
    flex: 1;
    min-width: 0;
}

.work-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-school {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .grade-header {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }
    
    .grade-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .grade-icon {
        font-size: 1.5rem;
    }
    
    .grade-title {
        font-size: 1.5rem;
    }
    
    .work-item {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }
    
    .work-thumbnail {
        width: 100%;
        height: 150px;
        max-width: 200px;
    }
    
    /* 수기(PDF)일 때만 작은 크기 */
    .work-item.pdf-work .work-thumbnail {
        height: 120px;
        max-width: 150px;
    }
    
    .pdf-icon {
        font-size: 1.5rem;
    }
    
    .pdf-text {
        font-size: 0.7rem;
    }
    
    .work-title {
        font-size: 1.1rem;
    }
    
    .work-school {
        font-size: 0.9rem;
    }
    
    /* 모바일에서 그리드 레이아웃은 2개씩 표시 */
    .works-list.grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .works-list.grid-layout .work-thumbnail {
        height: 100px;
    }
}