
h1 {
    text-align: center;
    font-size: 4rem;
    padding: 20px;
    color: #fff;
    background-color: #000;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 64px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.works-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 300px;
    border: 1px solid #fff;
    background-color: #000;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.work-item[data-bg-image] {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

.work-item:hover {
    filter: sepia(1) saturate(5) contrast(0.8);
}

.work-item:active {
    transform: translateY(0);
}

.work-item h2 {
    font-size: 2rem;
    background-color: #000;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.work-item h2,
.work-item p {
    margin: 0;
    pointer-events: none;
}

.performance-date {
    font-weight: 600;
    color: #ccc;
}

.performance-location {
    font-style: italic;
    color: #aaa;
}

.performances-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    align-items: center;
    margin-top: 24px;
    box-sizing: border-box;
    padding: 0 20px;
}

.performance-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border-bottom: 1px solid black;
    padding: 20px;
    color: #fff;
    gap: 14px;
    background: black;
    box-sizing: border-box;
    overflow: hidden;
}

.performance-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.performance-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.performance-image {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 12px;
}

.performance-date-strong {
    font-weight: 700;
    font-size: 1.05rem;
    color: #dcdcdc;
    letter-spacing: 0.2px;
}

.performance-title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.performance-venue-name {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 2px;
}

.performance-venue {
    font-size: 0.95rem;
    color: #dcdcdc;
}

.performance-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.performance-location-strong {
    font-weight: 800;
    font-size: 1.15rem;
    color: #dcdcdc;
    text-align: right;
}

.performance-button {
    display: inline-block;
    background: white;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.performance-button:hover {
    background: #f5d9a8;
    transform: translateY(-1px);
}

.performance-button:active {
    transform: translateY(0);
}

/* Tablet styles */
@media (max-width: 1024px) {
    .works-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 30px 15px;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    h1 {
        padding: 15px;
        font-size: 3rem;
        max-width: calc(100% - 40px);
        margin: 0 auto;
    }

    .bracket-left {
        margin-left: -3rem;
    }

    .bracket-right {
        margin-right: -3rem;
    }
    
    .works-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .work-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 15px;
        min-height: 300px;
    }

    .performance-card:first-of-type {
        margin-top: 24px;
    }
    
    .work-item h2 {
        font-size: 2rem;
        text-align: center;
        padding: 10px 15px;
    }
    
    .work-item p {
        font-size: 0.9rem;
        text-align: center;
    }

    .performances-list {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .performance-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .performance-left,
    .performance-right {
        width: 100%;
        max-width: 100%;
    }

    .performance-right {
        align-items: center;
        gap: 6px;
    }

    .performance-location-strong {
        text-align: center;
        font-size: 1.05rem;
        width: 100%;
    }

    .performance-title {
        font-size: 1.2rem;
    }

    .performance-date-strong {
        font-size: 0.95rem;
    }

    .performance-button {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        padding: 12px 10px;
        font-size: 2rem;
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .works-container {
        padding: 15px 10px;
    }
    
    .work-item {
        margin: 12px 0;
        padding: 12px 10px;
        min-height: 70px;
    }
    
    .work-item h2 {
        font-size: 2rem;
        padding: 8px 10px;
    }
    
    .work-item p {
        font-size: 0.85rem;
    }

    .performances-list {
        padding: 0 10px;
    }

    .performance-card {
        padding: 12px 10px;
    }

    .performance-card-with-image {
        padding: 16px 10px;
    }

    .performance-title {
        font-size: 1.1rem;
    }
}