img[data-course-hole-image] { display:block; width:60%; height:auto; margin-inline:auto; }
.course-hole-thumbnail { position:relative; display:block; width:60%; flex-shrink:0; margin-inline:auto; border-radius:1rem; cursor:zoom-in; }
.course-hole-thumbnail > img[data-course-hole-image] { display:block; width:100% !important; height:auto !important; max-width:100%; margin:0; }
.course-hole-thumbnail:focus-visible { outline:3px solid var(--course-primary,#148654); outline-offset:4px; }
.course-hole-zoom-icon { position:absolute; right:8px; bottom:8px; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fff; color:#0c4934; box-shadow:0 2px 8px #0003; pointer-events:none; }
.course-hole-zoom-icon svg { width:20px; height:20px; }
.course-hole-image-wrap:has([data-course-hole-image]) { min-height:0; height:auto; align-items:flex-start; }
.course-hole-viewer { width:min(1100px,94vw); max-width:94vw; max-height:94vh; padding:0; border:0; border-radius:1rem; background:#fff; color:#102c22; box-shadow:0 12px 50px #0005; }
.course-hole-viewer::backdrop { background:rgba(0,0,0,.75); }
.course-hole-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; background:var(--course-primary,#116c49); color:#fff; }
.course-hole-viewer-header h2 { margin:0; color:inherit; font-size:1.2rem; font-weight:700; }
.course-hole-viewer-close { border:1px solid #ffffff80; border-radius:999px; padding:.4rem 1rem; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.course-hole-viewer-close:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.course-hole-viewer-image { display:block; width:100%; height:auto; max-height:calc(90vh - 80px); object-fit:contain; padding:1rem; box-sizing:border-box; }

/* Tablet: keep all hole facts together beside the image. Phone and desktop retain their layouts. */
@media (min-width:700px) and (max-width:1199.98px) {
    .course-hole-layout > .course-hole-copy { flex:0 0 50%; width:50%; min-width:0; order:1 !important; }
    .course-hole-layout > .course-hole-picture { flex:0 0 50%; width:50%; min-width:0; order:2 !important; margin-top:0 !important; }
    .course-hole-copy > .row > :is(.course-hole-yardage,.course-hole-stats,.course-hole-tip,.course-hole-sponsor) { flex:0 0 100%; width:100% !important; padding-inline:.75rem !important; }
    .course-hole-copy .course-hole-yardage { order:1 !important; }
    .course-hole-copy .course-hole-stats { order:2 !important; }
    .course-hole-copy .course-hole-tip { order:3 !important; }
    .course-hole-copy .course-hole-sponsor { order:4 !important; }
    .course-hole-facts { display:flex; flex-direction:column; gap:1rem; padding:1.5rem !important; }
    .course-hole-facts > .course-hole-heading { display:contents !important; }
    .course-hole-facts .course-hole-stats { text-align:left !important; }
}

/* Only tablet columns expand the image; retain desktop sizing through 1200px. */
@media (min-width:700px) and (max-width:1199.98px) {
    img[data-course-hole-image], .course-hole-thumbnail { width:100%; }
}

@media (min-width:1200px) {
    img[data-course-hole-image], .course-hole-thumbnail { width:240px; max-width:100%; }
    .course-hole-zoom-icon { display:none; }
}

/* Compact images below desktop; keep the magnifier hidden. */
@media (max-width:1199.98px) {
    img[data-course-hole-image], .course-hole-thumbnail { width:60%; max-width:100%; }
    .course-hole-zoom-icon { display:none; }
}

/* Give tablet text the spare space while holding the desktop image size. */
@media (min-width:900px) and (max-width:1199.98px) {
    .course-hole-layout > .course-hole-copy { flex:1 1 0; width:calc(100% - 288px); }
    .course-hole-layout > .course-hole-picture { flex:0 0 288px; width:288px; }
    img[data-course-hole-image], .course-hole-thumbnail { width:240px; max-width:100%; }
}
@media (min-width:700px) {
    .course-hole-title,
    body.course-site-standard :is(#holes,[data-dash-section="holes"]) .standard-hole-title { text-align:left !important; }
}

@media (min-width:700px) and (max-width:1199.98px) {
    .course-hole-layout > .course-hole-copy { flex:1 1 0; width:calc(100% - 288px); }
    .course-hole-layout > .course-hole-picture { flex:0 0 288px; width:288px; }
    img[data-course-hole-image], .course-hole-thumbnail { width:240px; max-width:100%; }
}
@media (min-width:900px) and (max-width:1199.98px) {
    .course-hole-copy > .row > :is(.course-hole-yardage,.course-hole-stats) { flex:0 0 50%; width:50% !important; }
    .course-hole-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .course-hole-facts > .course-hole-heading > :first-child { grid-column:1 / -1; }
    .course-hole-facts .course-hole-tip { grid-column:1 / -1; }
}
@media (max-width:699.98px) {
    .course-hole-layout > .course-hole-copy { order:1 !important; }
    .course-hole-layout > .course-hole-picture { order:2 !important; }
}

.course-hole-handicap-short { display:none; }
@media (min-width:900px) and (max-width:1199.98px), (max-width:699.98px) {
    .course-hole-handicap-full { display:none; }
    .course-hole-handicap-short { display:inline; }
    .course-hole-copy > .row > .course-hole-stats { padding-left:1.75rem !important; }
}
@media (max-width:575.98px) {
    .course-hole-copy > .row > .course-hole-stats { padding-left:.75rem !important; margin-block:1rem; }
}
@media (min-width:450px) and (max-width:699.98px) {
    img[data-course-hole-image], .course-hole-thumbnail { width:256px; max-width:60%; }
    .course-hole-thumbnail > img[data-course-hole-image] { max-width:100%; }
}

@media (min-width:576px) and (max-width:699.98px) {
    .course-hole-copy > .row > .course-hole-yardage { padding-right:1.5rem !important; }
    .course-hole-copy > .row > .course-hole-stats { padding-left:2.25rem !important; }
}
@media (max-width:575.98px) {
    .course-hole-copy > .row > .course-hole-stats { margin-block:1.5rem; }
}

@media (min-width:576px) and (max-width:699.98px) {
    .course-hole-copy > .row > .course-hole-yardage { padding-right:2rem !important; }
    .course-hole-copy > .row > .course-hole-stats { padding-left:3rem !important; }
}
@media (max-width:575.98px) {
    .course-hole-copy > .row > .course-hole-yardage { order:1 !important; }
    .course-hole-copy > .row > .course-hole-stats { order:2 !important; }
    .course-hole-copy > .row > .course-hole-tip { order:3 !important; }
    .course-hole-copy > .row > .course-hole-sponsor { order:4 !important; }
}

/* Override the website theme's narrow-screen column padding. */
@media (min-width:576px) and (max-width:699.98px) {
    body .course-hole-layout .course-hole-copy > .row > .course-hole-yardage { padding-right:2rem !important; }
    body .course-hole-layout .course-hole-copy > .row > .course-hole-stats { padding-left:3rem !important; }
}

/* Compact statistics: heading-sized Par, body-sized labels, readable values. */
body .course-hole-layout .course-hole-copy > .row > .course-hole-stats {
    margin-block:0 !important;
    padding-block:.5rem !important;
}
body .course-hole-stats > .row { margin-top:0 !important; }
body .course-hole-stats > .row h3 { margin-bottom:.375rem; line-height:1.35; }
body .course-hole-stats > .row:first-child > .col-9 > h3 { font-size:1.25rem; }
body .course-hole-stats > .row:not(:first-child) > .col-9 > h3 { font-size:1rem; font-weight:400; }
body .course-hole-stats > .row:not(:first-child) > .col-3 > h3 { font-size:1.25rem; }
@media (min-width:576px) and (max-width:699.98px) {
    body .course-hole-layout .course-hole-copy > .row > .course-hole-yardage { padding-right:1rem !important; }
    body .course-hole-layout .course-hole-copy > .row > .course-hole-stats { padding-left:1.5rem !important; }
}

/* Balance the spacing when statistics stack below yardage. */
@media (min-width:700px) and (max-width:899.98px), (max-width:575.98px) {
    body .course-hole-layout .course-hole-copy > .row > .course-hole-stats {
        margin-top:.75rem !important;
        padding-bottom:0 !important;
    }
    body .course-hole-layout .course-hole-copy > .row > .course-hole-tip {
        margin-top:.5rem !important;
    }
}
