﻿main {
    gap: 0;
    padding-top: 18px;
    background-color: #ededed;
}
/* Hero Section */
.music-service-hero {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    padding: 20px 88px 0;
}

.hero-content-wrapper {
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 0 5%;
}

.hero-left-content {
    flex: 0 0 auto;
}

.breadcrumb-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 1px;
    color: #9EA3A6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-arrow {
    width: 24px;
    height: 24px;
}

.music-service-title {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 800;
    font-size: 72px;
    line-height: 83%;
    color: #000000;
    margin: 0 0 20px 0;
}

.music-service-description {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #333333;
    margin: 0;
    max-width: 527px;
}

.digital-wheel-section {
    position: relative;
    display: flex;
    padding: 120px 80px;
    background: #ededed;
    overflow: hidden; /* ตัดรูปที่ล้น */
    min-height: 700px;
}
.wheel-visual {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;           /* คุมขนาดที่นี่ */
    pointer-events: none;  /* ไม่บัง hover */
}

.wheel-visual img {
    width: 100%;
    max-width: 352px;
}
/* เมนู */
.wheel-menu {
    position: relative;
    left: 170px;
    top: -120px;
}

.wheel-menu li {
    position: absolute;
    cursor: pointer;
    white-space: nowrap;
    font-size: 38px;
    transition: .25s;
    list-style: none;
    line-height: 90%;
    font-weight: 600;
}

.wheel-menu li:hover,
.wheel-menu li.active {
    font-weight: 900;
}

.wheel-menu li a {
    text-decoration: none;
    color: var(--text-color);
}

.wheel-menu li.active a {
    text-decoration: underline;
    text-decoration-color: #FFE600;
}

.wheel-content {
    margin-left: 650px;
    max-width: 980px;
    margin-top: 3%;
}

.wheel-content h2 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 24px;
}

.wheel-content p {
    font-size: 22px;
    line-height: 1.6;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* ตอนแสดง */
.fade-in-delay.show {
  opacity: 1;
  transform: translateY(0);
}

.business-detail-section {
    padding: 0 80px 80px;
    background: #ededed;
}

.business-detail-container {
    margin-left: 650px;
    max-width: 980px;
}

.business-section-block + .business-section-block {
    margin-top: 52px;
}

.business-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 16px;
    background: #ffe100;
    color: #000;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 18px;
}

.digital-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.digital-logo-card {
    background: #fff;
    border-radius: 10px;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
}

.digital-logo-card img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.digital-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
}

.digital-info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    padding: 16px 18px;
}

.digital-info-thumb {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.digital-info-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-16x9 {
    width: 180px;
    aspect-ratio: 16 / 9;
}

.thumb-square {
    width: 116px;
    aspect-ratio: 1 / 1;
}

.digital-info-body {
    min-width: 0;
}

.digital-info-title {
    color: #111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.digital-info-text {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.publishing-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.publishing-partner-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publishing-partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.media-poster-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.media-poster-card img {
    display: block;
    width: 100%;
    height: auto;
}

.media-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.media-photo-card {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.media-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-service-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.music-service-project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
}

.music-service-project-poster {
    flex: 0 0 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
}

.music-service-project-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.music-service-project-body {
    min-width: 0;
}

.music-service-project-title {
    color: #111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

.music-service-project-text {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.music-service-song-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.music-service-song-card {
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.music-service-song-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 14px;
}

.music-service-song-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-service-song-body {
    padding: 10px 2px 2px;
}

.music-service-song-title {
    color: #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.music-service-song-text {
    color: #333;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.music-management-song-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.music-management-song-card {
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.music-management-song-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 14px;
}

.music-management-song-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-management-song-body {
    padding: 10px 2px 2px;
}

.music-management-song-title {
    color: #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.music-management-song-text {
    color: #333;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.music-management-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.music-management-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
}

.music-management-event-poster {
    flex: 0 0 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
}

.music-management-event-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.music-management-event-body {
    min-width: 0;
}

.music-management-event-title {
    color: #111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

.music-management-event-text {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 1899px) and (min-width: 1200px) {
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1600px) and (min-width: 1200px) {
    .digital-info-card {
        gap: 14px;
        padding: 14px 16px;
    }

    .thumb-16x9 {
        width: 160px;
    }

    .thumb-square {
        width: 104px;
    }

    .digital-info-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .digital-info-text {
        font-size: 14px;
        line-height: 1.35;
    }

    .music-service-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .music-management-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {

    .wheel-menu .menu-item {
        white-space: nowrap;
        font-size: 36px;
        font-weight: 600;
    }

    .wheel-menu .item-1 { left:   0%; top:  15%; }
    .wheel-menu .item-2 { left: 250%; top: 35.5%; }
    .wheel-menu .item-3 { left: 390%; top: 57%; }
    .wheel-menu .item-4 { left: 400%; top: 89.5%; }
    .wheel-menu .item-5 { left: 320%; top: 111%; }
    .wheel-menu .item-6 { left:  62%; top: 133%; }
}

@media (max-width: 1199px) {
    .hero-content-wrapper {
        gap: 0;
    }

    .digital-wheel-section {
        padding: 3px 40px;
        min-height: auto;
        flex-direction: column;
    }

    /* แผ่นเสียงเล็กลง */
    .wheel-visual {
        top: 34%;
    }

    .wheel-visual img {
        max-width: 260px;
    }

    /* เมนูย่อ + ขยับ */
    .wheel-menu {
        margin: 0;
        padding: 0;
        left: 170px;
        top: 0;
    }

    .wheel-menu .menu-item {
        font-size: 20px;
        margin: 12px 0;
        line-height: 1.3;
        white-space: normal;
    }

    .wheel-menu li {
        font-size: 26px;
    }

    /* content ลงล่าง */
    .wheel-content {
        margin-left: 0;
        margin-top: 520px;
        max-width: 100%;
    }

    .wheel-content h2 {
        font-size: 48px;
    }

    .business-detail-container {
        margin-left: 0;
        max-width: 100%;
    }

    .business-detail-section {
        padding: 0 40px 50px;
    }

    .publishing-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-poster-grid,
    .media-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .music-service-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .music-service-song-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .music-management-song-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .music-management-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wheel-menu .item-1 { left: -20px; top: 35px; }
    .wheel-menu .item-2 { left: 35px; top: 103px; }
    .wheel-menu .item-3 { left: 74px; top: 175px; }
    .wheel-menu .item-4 { left: 75px; top: 279px; }
    .wheel-menu .item-5 { left: 58px; top: 352px; }
    .wheel-menu .item-6 { left: 2px; top: 422px; }
}

@media (max-width: 768px) {

    .digital-wheel-section {
        padding: 40px 20px;
        min-height: auto;
    }

    /* แผ่นเสียง: เล็ก + ชิดซ้าย */
    .wheel-visual {
        top: 200px;
    }

    .wheel-visual img {
        max-width: 200px;
    }

    /* menu → list ธรรมดา */
    .wheel-menu {
        margin: 0;
        padding: 0;
        top: -15px;
        left: 120px;
    }

    .wheel-menu .menu-item {
        font-weight: 700;
    }

    .wheel-menu li {
        font-size: 20px;
        margin: 14px 0;
        line-height: 1.2;
    }

    /* content ลงล่าง */
    .wheel-content {
        max-width: 100%;
        margin-top: 380px;
    }

    .wheel-content h2 {
        font-size: 36px;
    }

    .wheel-content p {
        font-size: 16px;
    }

    .business-detail-section {
        padding: 0 20px 40px;
    }

    .business-section-badge {
        font-size: 18px;
        padding: 9px 16px;
    }

    .digital-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .digital-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .digital-info-card {
        border-radius: 22px;
        padding: 14px;
        gap: 14px;
    }

    .thumb-16x9 {
        width: 120px;
    }

    .thumb-square {
        width: 86px;
    }

    .digital-info-title {
        font-size: 16px;
    }

    .digital-info-text {
        font-size: 14px;
    }

    .publishing-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .publishing-partner-card {
        border-radius: 12px;
        padding: 14px;
    }

    .media-poster-grid,
    .media-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .media-poster-card,
    .media-photo-card {
        border-radius: 12px;
    }

    .music-service-project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .music-service-project-card {
        border-radius: 20px;
        padding: 14px;
    }

    .music-service-project-poster {
        flex-basis: 90px;
    }

    .music-service-project-title {
        font-size: 16px;
    }

    .music-service-project-text {
        font-size: 13px;
    }

    .music-service-song-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .music-service-song-card {
        padding: 8px;
        border-radius: 20px;
    }

    .music-management-song-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .music-management-song-card {
        padding: 8px;
    }

    .music-management-event-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .music-management-event-card {
        border-radius: 20px;
        padding: 14px;
    }

    .music-management-event-poster {
        flex-basis: 90px;
    }

    .music-management-event-title {
        font-size: 16px;
    }

    .music-management-event-text {
        font-size: 13px;
    }

    .wheel-menu .item-1 { left: 0; top: 0; }
    .wheel-menu .item-2 { left: 50px; top: 50px; }
    .wheel-menu .item-3 { left: 74px; top: 100px; }
    .wheel-menu .item-4 { left: 75px; top: 185px; }
    .wheel-menu .item-5 { left: 62px; top: 240px; }
    .wheel-menu .item-6 { left: 25px; top: 297px; }
}

/* Singles Section */
.singles-section {
    padding: 20px 88px;
    background: #ededed;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'AttenNew', 'Atten New', sans-serif;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #000;
}

.singles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px 40px;
    margin-bottom: 40px;    
}

.single-card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s;
    background: #fff;
    padding-bottom: 20px;
}

.single-card:hover {
    transform: translateY(-10px);
}

.single-card:not(:first-child) {
    background: #FFFFFF;
}

.single-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* ทำให้สี่เหลี่ยมจัตุรัส */
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0; /* เพิ่มมุมโค้งเล็กน้อยถ้าต้องการ */
    overflow: hidden;
}

.single-info {
    padding: 20px 32px 11px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.single-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #262424;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}
.single-alt {

}
.single-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 34px;
    height: 34px;
    background: #F6F6F6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.action-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.action-btn:hover {
    background: #FFE600;
    transform: scale(1.1);
}

/* Singles Responsive - Notebook layout as base (5 columns) */
@media (min-width: 1920px) {
    .singles-section {
        padding: 60px 120px;
    }
            
    .singles-grid {
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
}

/* Singles Responsive - Notebook layout as base (4 columns) */
@media (max-width: 1800px) and (min-width: 1200px) {
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet landscape - reduce to 4 columns but maintain proportions */
@media (max-width: 1199px) and (min-width: 992px) {
    .singles-section {
        padding: 30px 70px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
}

/* Mobile landscape - 3 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .singles-section {
        padding: 30px 50px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
            
    .single-card {
        
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* iPad Portrait - 3 columns optimized */
@media (max-width: 767px) and (min-width: 601px) {
    .singles-section {
        padding: 25px 35px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
            
    .single-card {        
        border-radius: 18px;
        box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        margin-bottom: 45px;
    }
            
    .single-info {
        padding: 18px 28px 10px;
    }
            
    .single-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
}

/* Mobile portrait - 2 columns beautiful */
@media (max-width: 600px) and (min-width: 376px) {
    .singles-section {
        padding: 25px 25px;
    }
            
    .singles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        padding: 15px 10px;
    }
            
    .single-card {
        border-radius: 16px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 40px;
    }
            
    .single-info {
        padding: 16px 24px 9px;
    }
            
    .single-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
}

/* Small mobile - 1 column elegant */
@media (max-width: 375px) {
    .singles-section {
        padding: 15px 20px;
    }
            
    .singles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        height: 1000px;
    }
            
    .single-card {
        border-radius: 15px;
        box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
    }
            
    .single-image {
        
    }
            
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
            
    .single-info {
        padding: 15px 20px 8px;
    }
            
    .single-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
            
    .action-btn {
        width: 30px;
        height: 30px;
    }
            
    .action-btn img {
        width: 16px;
        height: 16px;
    }
}
.social-icons {
    display: flex;
    gap: 28px;
    align-items: center;
    padding-top: 10px;
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;          /* ไม่ให้ดูเหมือนคลิกได้ */
}

.social-icon i {
    font-size: 34px;          /* ขนาดใหญ่ขึ้น */
    color: #000;              /* สีดำ */
}

/* Tooltip */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* ลูกศร tooltip */
.social-icon::before {
    content: "";
    position: absolute;
    bottom: 125%;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Hover */
.social-icon:hover::after,
.social-icon:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.wheel-menu {
    text-transform: uppercase;
}

/* Gallery */
.gallery-section {
    padding-bottom: 80px;
}

/* container คุมความกว้าง + จัดกลาง */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;   /* จัดกลาง */
    padding: 0 20px 80px;  /* เว้นซ้ายขวา */
}

/* ชื่อหมวด */
.gallery-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Card */
.gallery-item {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #eee;
    transition: all 0.3s ease;
}

/* บังคับความสูงเท่ากัน */
.gallery-img {
    width: 100%;
    height: 260px;        /* ⭐ บังคับความสูง */
    object-fit: cover;    /* ⭐ ครอบตัดอัตโนมัติ */
    display: block;
}

/* Hover */
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
