/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 02 2026 | 16:13:32 */
/* ==========================================================
   FIN — SINGLE EVENTS | FEATURE INDEX
   ==========================================================

   EVENT PAGE / LAYOUT
   - Shared event canvas and maximum content width
   - Two-column event content and details sidebar
   - Stacked layout with event details before description
   - Container-query responsive breakpoints

   EVENT COVER / BANNER
   - Cover image dimensions, aspect ratio and framing
   - Desktop and mobile image presentation
   - Tablet/mobile Safari corner clipping
   - Per-event image cropping handled by PHP Event Cover v4

   EVENT DETAILS / RSVP
   - Event details sidebar width and spacing
   - Date, time and location information
   - Online, in-person and TBD location layouts
   - Native Join / RSVP button styling
   - Responsive two-column and stacked detail layouts

   MOBILE / TABLET
   - Layout based on available container width
   - Compact event details and column adjustments
   - Mobile banner aspect ratio and 12px gutters
   - Consistent card corners and internal spacing

   DEPENDENCIES
   - FIN — Global: --portal-normal-container-width
   - FIN Event Cover Editor v4 PHP snippet:
     dynamic event-specific cover image styling

   ========================================================== */


/* =========================================
   SINGLE EVENTS — LAYOUT VARIABLE
   ========================================= */

:root {
    --fin-event-details-width: 30%;
}

/* ------------------------------------------------------------
   1. SHARED CANVAS AND EVENT CONTENT
   ------------------------------------------------------------ */

main.portal-content-area:has(> .portal-event-content-wrapper) {
  width: 100% !important;
  max-width: var(--portal-normal-container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;

  /* Responsive columns follow available content space,
     not the width of the browser window. */
  container: fin-event / inline-size;
}


/* Shared by both the wide and stacked layouts. */
main.portal-content-area
> .portal-event-content-wrapper
> .portal-event-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}


/* =========================================
   EVENT DESCRIPTION — QUOTE BLOCK
   ========================================= */

/* FIN gold accent in both light and dark modes. */
main.portal-content-area:has(> .portal-event-content-wrapper)
.portal-event-content blockquote.wp-block-quote {
  border-left-color: #FFC72C !important;
}

/* Keep quote text readable in dark mode. */
body.palette-dark
main.portal-content-area:has(> .portal-event-content-wrapper)
.portal-event-content blockquote.wp-block-quote {
  color: var(--portal-text-color, #F5F5F5);
}


/* ------------------------------------------------------------
   2. EVENT COVER — FRAME AND IMAGE
   Keep these base values: v4 applies per-event crop settings.
   ------------------------------------------------------------ */

main.portal-content-area:has(> .portal-event-content-wrapper)
> .portal-item-featured-image-wrap {
  width: 100%;
  background: #101010;
  border-radius: 13px;
  overflow: hidden;
}

main.portal-content-area:has(> .portal-event-content-wrapper)
> .portal-item-featured-image-wrap img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 2.8 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #101010;
}

/* ------------------------------------------------------------
   3. TWO-COLUMN LAYOUT — WIDE EVENT CANVAS
   ------------------------------------------------------------ */

@container fin-event (min-width: 780px) {
  .portal-event-content-wrapper {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, var(--fin-event-details-width)) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  /* Event details sidebar */
  .portal-event-content-wrapper
  > .portal-event-details-section {
    padding: 20px !important;
    border-radius: 12px !important;
  }

  .portal-event-details-section
  > .sd-flex-col.sd-gap-20 {
    row-gap: 18px !important;
  }

  .portal-event-details-section
  .portal-event-date-text__primary {
    line-height: 1.4 !important;
  }

  .portal-event-details-section
  .portal-event-date-text__secondary {
    line-height: 1.5 !important;
    margin-top: 3px;
  }

  .portal-event-details-section
  .portal-event-detail-item .sd-flex-1 {
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Keep SureDash's native Join/RSVP action. */
  .portal-event-details-section
  .portal-event-join-cta {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    box-sizing: border-box;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
  }
}

/* ------------------------------------------------------------
   4. STACKED EVENT CANVAS — DETAILS BEFORE DESCRIPTION
   ------------------------------------------------------------ */

@container fin-event (max-width: 779.98px) {
  .portal-event-content-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .portal-event-content-wrapper
  > .portal-event-details-section {
    order: -1;
  }
}

/* ------------------------------------------------------------
   5. INTERMEDIATE CANVAS — COMPACT EVENT DETAILS
   ------------------------------------------------------------ */

@container fin-event (min-width: 560px) and (max-width: 779.98px) {
  .portal-event-details-section
  > .sd-flex-col.sd-gap-20 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center;
    column-gap: 20px;
    row-gap: 16px;
  }

  .portal-event-details-section
  .portal-event-detail-item {
    min-width: 0;
  }

  .portal-event-details-section
  .portal-event-detail-separator {
    display: none !important;
  }

  /* Physical locations / TBD get room for longer information. */
  .portal-event-details-section
  .portal-event-detail-item:has(.portal-event-location-icon--in_person),
  .portal-event-details-section
  .portal-event-detail-item:has(.portal-event-location-icon--tbd) {
    grid-column: 1 / -1;
  }

  .portal-event-details-section
  .portal-event-join-cta {
    grid-column: 1 / -1;
  }

  .portal-event-details-section:has(.portal-event-location-icon--online)
  .portal-event-join-cta {
    grid-column: 2;
  }
}

/* ------------------------------------------------------------
   6. PHONE-SIZED CANVAS — TWO-COLUMN EVENT DETAILS
   ------------------------------------------------------------ */

@container fin-event (max-width: 559.98px) {
  .portal-event-content-wrapper
  > .portal-event-details-section {
    padding: 16px !important;
  }

  .portal-event-details-section
  > .sd-flex-col.sd-gap-20 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 18px !important;
    align-items: start;
  }

  /* Date spans the full top row. */
  .portal-event-details-section
  .portal-event-detail-item:has(.portal-event-date-badge) {
    grid-column: 1 / -1;
  }

  .portal-event-details-section
  .portal-event-detail-item {
    min-width: 0;
    gap: 8px !important;
  }

  .portal-event-details-section
  .portal-event-detail-item .sd-flex-1 {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .portal-event-details-section
  .portal-event-detail-separator {
    display: none !important;
  }

  /* The native Join/RSVP button sits below the two columns. */
  .portal-event-details-section
  .portal-event-join-cta {
    grid-column: 1 / -1;
    width: 100% !important;
  }
}

/* Switch event details to one column below 480px
   to prevent awkward text wrapping on smaller screens. */
@container fin-event (max-width: 479.98px) {
  .portal-event-details-section
  > .sd-flex-col.sd-gap-20 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ------------------------------------------------------------
   7. TABLET / MOBILE SAFARI — BANNER CLIPPING
   ------------------------------------------------------------ */

@media (max-width: 921px) {
  main.portal-content-area:has(> .portal-event-content-wrapper)
  > .portal-item-featured-image-wrap {
    border-radius: 12px !important;
    overflow: hidden !important;
    isolation: isolate;
    -webkit-clip-path: inset(0 round 12px);
    clip-path: inset(0 round 12px);
  }

  main.portal-content-area:has(> .portal-event-content-wrapper)
  > .portal-item-featured-image-wrap
  > img.portal-item-featured-image {
    border-radius: 0 !important;
  }
}

/* ------------------------------------------------------------
   8. PHONE VIEWPORT — MATCHING 12px GUTTERS AND CORNERS
   ------------------------------------------------------------ */

@media (max-width: 767px) {
	main.portal-content-area:has(> .portal-event-content-wrapper) {
		box-sizing: border-box !important;
		padding-left: var(--fin-mobile-gutter) !important;
		padding-right: var(--fin-mobile-gutter) !important;
	}


  /* The canvas supplies the gutter; the banner fills that canvas. */
  main.portal-content-area:has(> .portal-event-content-wrapper)
  > .portal-item-featured-image-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    max-height: none !important;
  }

  main.portal-content-area:has(> .portal-event-content-wrapper)
  > .portal-item-featured-image-wrap img {
    aspect-ratio: 16 / 9 !important;
  }

  main.portal-content-area
  > .portal-event-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  main.portal-content-area
  > .portal-event-content-wrapper
  > .portal-event-content {
    box-sizing: border-box;
    min-width: 0;
  }

  /* Match the radius of the cover and both white content cards. */
  main.portal-content-area
  > .portal-event-content-wrapper
  > .portal-event-details-section,
  main.portal-content-area
  > .portal-event-content-wrapper
  > .portal-event-content:not(.portal-event-details-section) {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Final phone spacing, overriding the smaller-canvas grid's gap. */
  main.portal-content-area
  .portal-event-details-section
  > .sd-flex-col.sd-gap-20 {
    row-gap: 14px !important;
  }
}


/* ==========================================================
   FIN — SINGLE EVENTS | EVENT NAVIGATION CLEANUP
   Version: v0.1.0 TEST

   Remove redundant native Event-specific navigation.
   Preserve FIN shared header, history, Event content,
   Join/Leave actions and permissions.
   ========================================================== */


/* Hide the native Event-only desktop header containing
   "Return to Events" and Add to Calendar.

   Keep FIN's shared header/navigation/actions intact.
*/

body:has(nav#event-navigation)
.portal-item-title-area:has(> a.portal-sub-item-link.portal-hide-on-responsive) {
    display: none !important;
}


/* Hide the entire redundant mobile Event navigation row:
   - FIN Events return link
   - Secondary hamburger/list menu
   - Event Bookmark button
*/

nav#event-navigation {
    display: none !important;
}


