@charset "utf-8";

/* Container Width Adjustments */
.container {
    width: 1440px;
    max-width: 100%; /* Ensure it doesn't overflow on small screens */
    margin: 0 auto;
    padding: 0; /* Removing the 240px padding from main-new.css */
}

/* Exhibition Detail New Layout */
.exh-title-info {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 40px;
}

.exh-title-info h2 {
    font-size: 30.5px;
    font-weight: 600;
    line-height: 1.67;
    color: #222;
    letter-spacing: normal;
}

/* Exhibition Detail New Layout */

/* 1. Visual Image */
.exh-detail-visual {
    width: 100%;
    margin-bottom: 60px;
    text-align: center;
}

.exh-img-box {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    background-color: #f0f0f0;
    /* Removed padding-top aspect ratio to allow natural height or auto */
}

.exh-img-box img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

/* 2. Info Grid */
.exh-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px; /* Row gap 40, Col gap 20 */
    margin-bottom: 60px;
    border-bottom: 1px solid #111;
    padding-bottom: 60px;
}

.exh-info-item {
    display: flex;
    flex-direction: column;
}

.exh-info-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.exh-info-label span {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.exh-line {
    width: 33px;
    height: 3px;
    background-color: #000;
    margin: 50px 5px 41px 19px; /* Exact margin from user request */
    flex-shrink: 0;
}

.exh-info-box {
    border: 1px solid #ddd;
    padding: 20px;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    background: #fff;
    min-height: 120px; /* Minimum height for consistency */
}

/* Full Width Modifier for Grid Items */
.exh-info-item.full-width {
    grid-column: 1 / -1;
}

/* Description Area */
.exh-description {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
    white-space: pre-line;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}

/* Buttons */
.exh-btn-area {
    text-align: center;
    margin-bottom: 100px;
}

.btn-exh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    height: 50px;
    margin: 48px auto 70px; /* Centered with requested vertical margins */
    padding: 0; /* Removing padding as we have fixed width/height */
    
    /* Gradient Background */
    background-image: linear-gradient(to right, #96217a, #2c5bab);
    
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 0;
    text-decoration: none;
    transition: opacity 0.3s;
    border: none;
    position: relative;
}

.btn-exh:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(44, 91, 171, 0.4);
}

/* Right Arrow for Button */
.btn-exh::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 10px;
    margin-top: -2px; /* Slight visual correction */
}

/* Submission List (Grid) */
.exh-work-section {
    margin-top: 80px;
}

.exh-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.exh-work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Increased gap */
}

.exh-work-item {
    display: block;
    text-decoration: none;
    background: #fff;
    /* border: 1px solid #eee; Removed border for cleaner look */
    transition: transform 0.3s ease;
}

.exh-work-item:hover {
    transform: translateY(-8px);
}

.exh-work-thumb {
    position: relative;
    padding-top: 100%; /* 1:1 Square */
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 15px;
}

.exh-work-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.exh-work-item:hover .exh-work-thumb img {
    transform: scale(1.1);
}

.exh-work-info {
    padding: 5px 0;
    text-align: left; /* Aligned left for gallery style */
}

.exh-work-title {
    display: block;
    font-size: 18px;
    color: #111;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exh-work-artist {
    display: block;
    font-size: 15px;
    color: #888;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    /* Adjust grid gap if needed? */
}

@media (max-width: 1024px) {
    .exh-info-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
    }
    
    .exh-work-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .exh-info-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }

    .exh-title-info h2 {
        font-size: 24px;
    }
    
    .exh-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .exh-work-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-exh {
        width: 100%;
    }
}
