html {
    scroll-padding-top: 140px; /* Adjust this to the height of your header */
    scroll-behavior: smooth;
}
/* 1. THE MAIN ROW */
.event-row {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: visible !important;
}

/* 2. THE POSTER (IMAGE) */
.event-poster {
    position: absolute !important;
    top: 50% !important;
    left: 80% !important; /* Adjust based on where you want the poster to appear */
    width: 250px;
    height: auto;
    opacity: 0 !important;
    pointer-events: none;
    z-index: 9999 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform: translate(-50%, -50%) scale(0.7) rotate(-3deg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}

/* Hover trigger for Poster */
.e-loop-item:hover .event-poster {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) rotate(2deg) !important;
}

/* 3. THE EXCERPT REVEAL */
.event-excerpt {
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Hover trigger for Excerpt */
.e-loop-item:hover .event-excerpt {
    max-height: 150px; /* Adjust if your excerpt is long */
    opacity: 1;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

/* 4. MOBILE SAFETY */
@media (max-width: 1024px) {
    .event-poster { display: none !important; }
    .event-excerpt { max-height: none; opacity: 1; margin-top: 10px !important; }
}
/* --- THE ULTIMATE AUSTURBÆJARBÍÓ FORM RESET --- */

/* 1. FORCE LETTERS INSTEAD OF DOTS & INCREASE SIZE */
body .gform_wrapper select,
body .gform_wrapper select option,
body .gform_wrapper input,
body .gform_wrapper textarea {
    -webkit-text-security: none !important;
    text-security: none !important;
    letter-spacing: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    font-size: 18px !important; 
    text-transform: none !important; 
    min-height: 50px !important; 
    line-height: 1.4 !important;
}

/* 2. KILL WHITE BOXES & THEME OVERRIDES */
body .gform_wrapper.gravity-theme,
body .gform_wrapper {
    --gform-theme-control-bg-color: transparent !important;
}

body .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]),
body .gform_wrapper textarea,
body .gform_wrapper select {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 2px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

/* 3. FIX TEXT COLORS, LABELS & DESCRIPTIONS */
body .gform_wrapper *,
body .gform_wrapper label,
body .gform_wrapper .gfield_label,
body .gform_wrapper .gfield_radio label,
body .gform_wrapper .gfield_checkbox label,
body .gform_wrapper .gfield_description {
    color: #ffffff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 18px !important;
    text-transform: none !important;
}

/* Specific fix for descriptions */
body .gform_wrapper .gfield_description {
    font-size: 15px !important;
    margin-top: 8px !important;
}

/* 1. HIDE ENGLISH 'REQUIRED' TEXT & LEGENDS */
.gform_required_legend, 
.gform_instructions_required,
.gfield_required,
.gform_required_instructions,
.gfield_required_text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. FORCE BUTTON TEXT TO ALL CAPS ONLY */
/* This won't change the color or size, just the casing */
body .gform_wrapper .gform_footer input[type=submit],
body .gform_wrapper .gform_page_footer input[type=button],
body .gform_wrapper button[type=submit] {
    text-transform: uppercase !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}
/* FORCE DATE FIELDS TO FULL WIDTH */
body .gform_wrapper .gfield_date_day, 
body .gform_wrapper .gfield_date_month, 
body .gform_wrapper .gfield_date_year,
body .gform_wrapper .ginput_container_date,
body .gform_wrapper .ginput_container_date input {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for the wrapper container that often keeps it small */
body .gform_wrapper .ginput_container_date {
    display: block !important;
}