/**
 * iwao gallery Customizations CSS
 * アーティストページ関連のスタイル
 */

/* ここから先に、CSSを追加していきます */

/* ===========================================
   Artists一覧ページ
   =========================================== */

/* グリッドコンテナ */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* 各アーティストのカード */
.artist-item {
    margin: 0;
}

/* リンク全体 */
.artist-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サムネイル画像エリア */
.artist-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.artist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* ホバー時のズーム */
.artist-link:hover .artist-thumbnail img {
    transform: scale(1.3);
}

/* 名前表示エリア */
.artist-name {
    margin-top: 12px;
    text-align: left;
}

/* 日本語名 */
.artist-name-ja {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

/* 英語名（ローマ字） */
.artist-name-en {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

/* ===========================================
   レスポンシブ対応
   =========================================== */

/* タブレットサイズ：3列 */
@media (max-width: 1024px) {
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* スマートフォンサイズ：2列 */
@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 24px 0;
    }
}

/* ===========================================
   Artists 詳細ページ
   =========================================== */

/* タイトル */
.artist-single-header {
    margin-bottom: 60px;
}

.artist-single-title {
    margin: 0;
    line-height: 1.4;
}

.artist-single-title-ja {
    display: block;
    font-size: 20px;
}

.artist-single-title-en {
    display: block;
    font-size: 17px;
    margin-top: 4px;
}

/* メイン画像 */
.artist-single-thumbnail {
    margin-bottom: 30px;
}

.artist-single-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 本文 */
.artist-single-content {
    margin-bottom: 60px;
    line-height: 1.8;
}

/* 前後ナビゲーション */
.artist-single-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 80px;
}

.artist-nav-prev,
.artist-nav-next {
    flex: 1;
    max-width: 45%;
}

.artist-nav-next {
    text-align: right;
}

.artist-nav-prev a,
.artist-nav-next a {
    display: inline-block;
    text-decoration: none;
}

.artist-nav-arrow {
}

/* 左（前）のナビ：矢印を最初の行に揃える */
.artist-nav-prev .artist-nav-arrow {
    margin-right: 8px;
    vertical-align: top;
}

/* 右（次）のナビ：矢印を最終行に揃える */
.artist-nav-next .artist-nav-arrow {
    margin-left: 8px;
    vertical-align: bottom;
}

.artist-nav-name {
    display: inline-block;
}

.artist-nav-name-ja {
    display: block;
    font-size: 12px;
}

.artist-nav-name-en {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

/* レスポンシブ：SP では余白縮小 */
@media (max-width: 768px) {
    .artist-single-title-ja {
        font-size: 20px;
    }
    
    .artist-single-title-en {
        font-size: 14px;
    }
    
    .artist-single-nav {
        margin-top: 24px;
        padding-bottom: 20px;
    }
}