/* ==========================================
   RRCC - Responsive Hero Image
   ========================================== */

/* Desktop */
@media screen and (min-width: 1024px) {
    .rrcc-hero {
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* Tablets */
@media screen and (min-width: 768px) 
              and (max-width: 1023px) {
    .rrcc-hero {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .rrcc-hero img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Mobile phones */
@media screen and (max-width: 767px) {
    .rrcc-hero {
        display: none !important;
    }
}


/* ==========================================
   RRCC - Responsive Homepage Optimization
   ========================================== */

/* Responsive images */
.rrcc-logo img,
.rrcc-home-card img,
.rrcc-field img {
    max-width: 100% !important;
    height: auto !important;
}

/* Weather widget */
.rrcc-weather iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* Tablet adjustments */
@media screen and (max-width: 1023px) {

    .rrcc-header h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .rrcc-home-card {
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {

    /* Club logo */
    .rrcc-logo {
        text-align: center !important;
    }

    .rrcc-logo img {
        max-width: 120px !important;
        height: auto !important;
    }

    /* Club header */
    .rrcc-header {
        text-align: center !important;
        padding: 12px !important;
        overflow-wrap: break-word !important;
    }

    .rrcc-header h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    .rrcc-header p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Homepage cards */
    .rrcc-home-card {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 20px 16px !important;
        margin: 0 0 12px 0 !important;
        box-sizing: border-box !important;
    }

    .rrcc-home-card h2 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .rrcc-home-card p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Buttons */
    .rrcc-home-card a.stylizedButton,
    .rrcc-field a.stylizedButton {
        display: block !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 12px 16px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Weather */
    .rrcc-weather {
        max-width: 100% !important;
        margin: 12px 0 !important;
    }

    /* Flying field */
    .rrcc-field {
        padding: 24px 16px !important;
        text-align: center !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .rrcc-field h1,
    .rrcc-field h2 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .rrcc-field p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Footer */
    .rrcc-footer {
        padding: 20px 16px !important;
        text-align: center !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* Smaller phones */
@media screen and (max-width: 375px) {

    .rrcc-header h1 {
        font-size: 21px !important;
    }

    .rrcc-logo img {
        max-width: 100px !important;
    }
}

/* ==========================================
   RRCC - Mobile Homepage Card Redesign
   ========================================== */

@media screen and (max-width: 767px) {

    /* Full-width card */
    .rrcc-home-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    }

    /* Large, full-width photographs */
    .rrcc-home-card img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    /* Card headings */
    .rrcc-home-card h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin: 20px 16px 12px !important;
    }

    /* Card descriptions */
    .rrcc-home-card p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin: 12px 16px !important;
    }

    /* Full-width touchscreen buttons */
    .rrcc-home-card a.stylizedButton {
        display: block !important;
        width: calc(100% - 32px) !important;
        margin: 16px !important;
        padding: 14px 12px !important;
        min-height: 48px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        font-size: 16px !important;
    }
}
/* RRCC - Mobile Card Background Photographs */

@media screen and (max-width: 767px) {

    .rrcc-card-photo {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        box-sizing: border-box !important;
    }
}