/* ========================================================= */
/* ===== sdws.css — WORKSHOP PAGE COMPONENTS ================= */
/* Structural/layout-only styles for elements not covered by  */
/* mainLook.css: gallery grid, lightbox, contact items, photo  */
/* layouts. No colors, fonts, or backgrounds here — those come */
/* from mainLook.css so every page stays visually consistent.  */
/* ========================================================= */

/* ===== Section icon (small inline image next to headings) === */
.section-icon {
    height: 28px;
    width: 28px;
    vertical-align: middle;
    margin-left: 10px;
}

/* ===== Photo + text side-by-side layouts ===================== */
.section-with-photo,
.about-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.section-photo,
.about-photo {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    flex: 0 0 180px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;   /* keep the head in frame */
}

.section-with-photo ul {
    margin: 0;
    padding-right: 20px;
    padding-left: 0;
    flex: 1;
}

.section-with-photo li {
    font-size: 20px;
    line-height: 1.7;
}

/* ===== Scroll-reveal (used by sdws.js IntersectionObserver) === */
/* Fail-safe by design: content is visible by default. Sections only
   become hidden-then-fade-in if the "reveal-ready" class successfully
   gets added to <html> by an inline script (see sdws-info.html) —
   so a failed/blocked external script never leaves content invisible.
   NOTE: the "visible" rule must include the html.reveal-ready prefix
   so it stays MORE specific than the "hidden" rule below — otherwise
   the hidden rule always wins and content never fades in. */
html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.reveal-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-wrapper p {
    flex: 1;
}

@media (max-width: 560px) {
    .section-with-photo,
    .about-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-photo,
    .about-photo {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 220px;
    }

    .section-with-photo ul {
        padding-right: 0;
        text-align: right;
    }
}

/* ===== Contact items ========================================== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin: 14px 0;
}

.contact-icon {
    height: 28px;
    width: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* ===== Gallery grid ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

@media (min-width: 700px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: transform 0.25s ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.08);
}

/* ===== Lightbox ================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 10px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox-close {
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.lightbox-prev {
    right: 24px;
}

.lightbox-next {
    left: 24px;
}

/* ===== Modal (cancellation policy, etc.) ======================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 32px;
}

.modal-content p {
    margin-bottom: 16px;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

/* ========================================================= */
/* ===== PAGE-SPECIFIC THEME TOUCHES ========================== */
/* Glow text, CTA button, urgent-note color — kept here rather   */
/* than in mainLook.css since they're only used on this page so  */
/* far. Move up to mainLook.css if another page needs them too.  */
/* ========================================================= */

h1, h2 {
    font-family: 'Frank Ruhl Libre', serif;
}

.content-wrapper {
    margin-top: 100px; /* clears the fixed top-stripe */
}

.hero-inner {
    padding: 20px;
    text-align: center;
    min-height: 360px;
}

.hero-inner h1 {
    font-size: 44px;
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 24px;              /* was 20px */
    text-shadow: 0 0 6px #ffb347, 0 0 14px #ff8c00;  /* orange glow, was yellow */
    margin-bottom: 24px;
}

.workshop-section h2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 26px;
    margin-bottom: 16px;
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
}

.workshop-section p {
    font-size: 18px;
    line-height: 1.7;
    text-shadow: none;
    font-weight: 500;
}

.workshop-section li {
    font-weight: 500;
}

.urgent-note {
    font-size: 18px;
    color: #ffff99;
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
    margin-bottom: 20px;
}

.contact-item {
    font-size: 18px;
}

.equipment-link-section {
    text-align: center;
}

.equipment-link-section p {
    margin-bottom: 16px;
    font-size: 18px;
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid rgba(180, 90, 255, 0.8);
    background: rgba(80, 0, 120, 0.3);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 8px rgba(180, 90, 255, 0.6),
                0 0 16px rgba(180, 90, 255, 0.4);
}

.cta-button:hover {
    background: rgba(120, 0, 200, 0.4);
    box-shadow: 0 0 12px rgba(200, 120, 255, 0.9),
                0 0 24px rgba(200, 120, 255, 0.7);
}

.gallery-item {
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.gallery-item:hover {
    box-shadow: 0 0 12px rgba(255,255,153,0.6), 0 0 20px rgba(255,255,255,0.4);
}

.lightbox-img {
    box-shadow: 0 0 20px rgba(255,255,153,0.5);
}

.lightbox-close,
.lightbox-nav {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    backdrop-filter: blur(6px);
}

.back-to-top {
    position: fixed;
    bottom: 75px;
    left: 15px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.back-to-top[hidden] {
    display: none;
}

/* Restore a "floating card" feel over the fixed background photo —
   mainLook.css gives .workshop-section a flat dark fill; this adds
   the glass/elevation depth without touching the shared file. */
.workshop-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.workshop-section {
    width: 100%;
    max-width: 780px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Gallery section keeps the blur/glass look */
.workshop-section:has(.gallery) {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Extra breathing room so the last section clears the fixed
   footer-stripe and back-to-top button when scrolled to the bottom */
.content-wrapper.workshops-wrapper {
    padding-bottom: 100px;
}

.page-footer-note {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.page-footer-note a {
    color: #ffff99;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: white;
}

.modal-content h2 {
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
    margin-bottom: 16px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    backdrop-filter: blur(6px);
}
#contact {
    scroll-margin-top: 100px;
    margin-top: 60px;
    margin-bottom: 60px;
}
.buy-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 2px solid rgba(180, 90, 255, 0.8);
    background: rgba(80, 0, 120, 0.3);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 0 8px rgba(180, 90, 255, 0.6), 0 0 16px rgba(180, 90, 255, 0.4);
}

.buy-link::before {
    content: "";
    position: absolute;
    inset: -14px;
    background: radial-gradient(circle, rgba(180, 90, 255, 0.45) 0%, rgba(180, 90, 255, 0) 72%);
    filter: blur(4px);
    z-index: -1;
    pointer-events: none;
}

.buy-link:hover {
    background: rgba(120, 0, 200, 0.4);
    box-shadow: 0 0 12px rgba(200, 120, 255, 0.9), 0 0 24px rgba(200, 120, 255, 0.7);
}

.buy-link:hover::before {
    background: radial-gradient(circle, rgba(200, 120, 255, 0.6) 0%, rgba(200, 120, 255, 0) 75%);
}

/* ===== UPCOMING WORKSHOPS CALENDAR ===== */

.calendar-wrapper {
    max-width: 320px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 10px;
}

.calendar-month {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin: 0;
    min-width: 110px;
    text-align: center;
    text-shadow: 0 0 5px #ffff99, 0 0 10px #ffffff;
}

.calendar-nav {
    background: rgba(80, 0, 120, 0.3);
    border: 2px solid rgba(180, 90, 255, 0.8);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 8px rgba(180, 90, 255, 0.5);
}

.calendar-nav:hover {
    background: rgba(120, 0, 200, 0.4);
    box-shadow: 0 0 12px rgba(200, 120, 255, 0.8);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    padding-bottom: 2px;
}

.calendar-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.calendar-cell.empty {
    background: none;
}

.calendar-cell.workshop-day {
    background: rgba(80, 0, 120, 0.4);
    border: 1px solid rgba(180, 90, 255, 0.8);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(180, 90, 255, 0.6);
    text-decoration: none;
}

.calendar-cell .workshop-icon {
    font-size: 10px;
    line-height: 1;
    margin-top: 1px;
}

.upcoming-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin: 14px 0 0;
}