@import url('https://fonts.googleapis.com/css2?family=Autour+One&display=swap');

.our-artworks-section {
    width: 100vw;
    min-height: 100vh;
    padding: 3rem 4vw;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-family: 'Autour One', cursive, sans-serif;
}

.artworks-header {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.artworks-title-box {
    display: flex;
    align-items: center;
}

.artworks-title-img {
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.artworks-arrow-box {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.artworks-arrow-box:hover {
    transform: translateY(2px);
}

.artworks-arrow-img {
    height: auto;
    max-height: 30px;
    object-fit: contain;
}

.artworks-divider {
    width: 100%;
    max-width: 1400px;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artworks-line-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.artworks-grid {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
}

.card-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-label-box {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.category-title-img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.artwork-card {
    position: relative;
    width: 100%;
    height: 720px;
    border-radius: 20px;
    padding: 2.5rem 2.2rem 1.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.artwork-card.card-3d,
.artwork-card.card-2d {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.card-paper-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
}

.badge-chibi {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}

.badge-chibi img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-chibi.chibi-left {
    top: -24px;
    left: -14px;
}

.badge-chibi.chibi-right {
    top: -24px;
    right: -14px;
}

.paperclip {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.paperclip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.paperclip.clip-top-right {
    width: 60px;
    height: 100px;
    top: -20px;
    right: 20px;
    transform: rotate(15deg);
}

.paperclip.clip-bottom-left {
    width: 60px;
    height: 100px;
    bottom: 20px;
    left: -20px;
    transform: rotate(-25deg);
}

.artwork-title-box {
    position: relative;
    z-index: 2;
    padding: 0.4rem 0.5rem;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.artwork-subtitle {
    display: block;
    min-height: 1.2em;
    font-family: 'Autour One', cursive, sans-serif;
    font-size: clamp(0.75rem, 0.95vw, 1.05rem);
    color: var(--card-accent-color, #a34855);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.artwork-title {
    font-family: 'Autour One', cursive, sans-serif;
    font-size: clamp(1.4rem, 2vw, 2.3rem);
    color: var(--card-accent-color, #a34855);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.gallery-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 250px;
    display: flex;
    gap: 0.85rem;
    padding: 0 0.2rem;
    transition: height 0.3s ease;
}

.gallery-container.expand-gallery {
    flex: 1;
    height: auto;
    min-height: 250px;
}

.main-image-box {
    position: relative;
    flex: 2.5;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--card-accent-color, #a34855);
    background-color: #ffffff;
    transition: border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.main-image-box:hover {
    transform: scale(1.015);
}

.main-image-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-box.full-width {
    flex: 1;
}

.thumbnails-box {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumb-item {
    position: relative;
    flex: 1;
    height: calc(33.33% - 0.33rem);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    border: 2px dashed var(--card-accent-color, #a34855);
    background-color: #ffffff;
    transition: border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.thumb-item:hover {
    transform: scale(1.03);
}

.thumb-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.overflow .thumb-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: inherit;
    font-family: 'Autour One', cursive, sans-serif;
    z-index: 3;
}

.gallery-container.grid-mode {
    display: grid;
    gap: 0.65rem;
}

.gallery-container.grid-mode.grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.gallery-container.grid-mode.grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.gallery-container.grid-mode.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.35fr 1fr;
}

.gallery-container.grid-mode.grid-3 .grid-item:first-child {
    grid-column: span 2;
}

.gallery-container.grid-mode.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--card-accent-color, #a34855);
    background-color: #ffffff;
    transition: border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: scale(1.02);
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item.overflow .grid-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.4rem;
    font-family: 'Autour One', cursive, sans-serif;
    z-index: 3;
}

.rating-stars-box {
    position: relative;
    z-index: 2;
    padding: 0.25rem 1.25rem;
    border-radius: 20px;
    margin: 0.1rem 0;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border: 2px dashed var(--card-accent-color, #a34855);
    transition: border-color 0.3s ease;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    font-size: 1.3rem;
    color: #cccccc;
}

.rating-stars .star.filled {
    color: #ffb400;
}

.review-box {
    position: relative;
    z-index: 2;
    width: 96%;
    flex: 1;
    min-height: 0;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #ffffff;
    border: 2px dashed var(--card-accent-color, #a34855);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.review-text {
    font-family: 'Autour One', cursive, sans-serif;
    font-size: clamp(0.75rem, 0.95vw, 1.05rem);
    line-height: 1.4;
    color: var(--card-accent-color, #a34855);
    transition: color 0.3s ease;
    word-break: break-word;
}

.carousel-nav-box {
    position: relative;
    z-index: 2;
    width: 60%;
    min-height: 38px;
    padding: 0.2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0.2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.dots-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.carousel-arrow {
    background: transparent;
    border: none;
    font-family: 'Autour One', cursive, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--card-accent-color, #a34855);
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.3s ease;
    padding: 0 4px;
    user-select: none;
}

.carousel-arrow:hover {
    transform: scale(1.3);
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background-color: #d1d1d1;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-dot.active {
    background-color: var(--dot-color);
    transform: scale(1.35);
}

.carousel-dot:hover {
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .artworks-grid {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .card-column {
        width: 100%;
        max-width: 650px;
    }

    .artwork-card {
        height: auto;
        min-height: 720px;
    }
}