

/* =========================================================
   GLOBAL LAYOUT (NO GAP BELOW FOOTER)
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: var(--bg);
    color: var(--text);

    font-family: var(--text-family);
}

/* Main content area */
.site-main {
    flex: 0 0 auto;
}

/* Spacer ensures footer always sits at bottom if content is short */
.page-flex-spacer {
    flex: 1 1 auto;
}

.PSGS{
    Display:none;
}

.header-cover{
    height: 120px;
    background-color: var(--primary);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;

}
.hero-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   PAGE CONTENT WRAPPER
========================================================= */

.page-content {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================
   BASE CONTENT CARD (container only)
========================================================= */

.content-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================
   GUTENBERG STRUCTURE SUPPORT
========================================================= */

/* Column wrapper */
.wp-block-columns {
    display: flex;
    gap: 18px;
    width: 100%;
}

/* Individual column */
.wp-block-column {
    flex: 1;

    background: #ffffff;

    border-radius: 16px;
    border: 2px solid #ffffff;

    padding: 20px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Group blocks */
.wp-block-group {
    background: #ffffff;

    border-radius: 16px;
    border: 2px solid #ffffff;

    padding: 20px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================================
   TYPOGRAPHY RESET INSIDE CONTENT
========================================================= */

.content-card p,
.content-card h1,
.content-card h2,
.content-card h3,
.content-card ul,
.content-card ol {
    margin: 0;
}

/* =========================================================
   IMAGE STYLING (FRAMED LOOK)
========================================================= */

/* Figures (Gutenberg images) */
.content-card figure {
    margin: 0;
    img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 14px;

    /* white frame effect */
    border: 6px solid #ffffff;

    box-sizing: border-box;
}
}

/* =========================================================
   RESPONSIVE FIX
========================================================= */

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
}

/* =========================================================
   SCROLL TO TOP BUTTON (SECONDARY COLOR)
========================================================= */

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 999px;

    background: var(--secondary);
    color: #ffffff;

    font-size: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;

    z-index: 9999;
}

/* visible state */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: scale(1.05);
}

/* =========================================================
   Picture Expand Gallery
========================================================= */

.expandable.expanded {
    img{
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        object-fit: contain; /* or cover */
        background: black;
        z-index: 9999;
    }
}

#Overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90vw;
    height: 90vh;
    padding: 5vh 5vw;

    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(128, 128, 128, 0.8); /* Half-transparent gray */
    border-radius: 20px;

    z-index: 9999;
}
#Overlay.inactive{
    display:none;
}

.overlay{
    height:100%;
}

#NextOverlay{
    height:100%;
    width:20px;
    background-color: rgba(128, 128, 128, 0.9);
}
#PrevOverlay{
    height:100%;
    width:20px;
    background-color: rgba(128, 128, 128, 0.9);
}

/* =========================================================
   Buttons
========================================================= */

.WhiteButton{
    padding-top: 15px;
    a{
        cursor: pointer;
        padding: 10px 18px;
        border: 1px solid var(--secondary);
        background: white;
        color: var(--secondary);
        border-radius: 6px;
        transition: all .2s ease;
        text-decoration: none;
    }
    a:hover{
        cursor: pointer;
        padding: 10px 18px;
        border: 1px solid white;
        background: var(--secondary);
        color: white;
        border-radius: 6px;
        transition: all .2s ease;
        text-decoration: none;
}

}

/* =========================================================
   Field Colors
========================================================= */

.Secondary{
    background-color: var(--secondary);
}