/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================================================================
   Arundel Cathedral — small additions to match the old site.
   Colours and fonts are set in Avada → Options; only extras live here.
   ========================================================================== */

/* Top bar: tagline text and the DONATE button */
.fusion-secondary-menu .top-bar-tagline > a { cursor: default; pointer-events: none; }
.fusion-secondary-menu .top-bar-donate > a {
	background: var(--awb-color7);
	color: #fff !important;
	padding: 0 12px;
	margin: 6px 0 6px 12px;
	line-height: 26px !important;
	height: auto !important;
	border-radius: 2px;
}
.fusion-secondary-menu .top-bar-donate > a:hover { background: var(--awb-color5); }

/* Responsive video / live-stream embeds */
.cathedral-embed { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 auto 1em; }
.cathedral-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ChurchSuite calendar embeds */
.cathedral-churchsuite iframe { width: 100%; height: 520px; border: 0; }
.cathedral-churchsuite-tall iframe { height: 1100px; }

/* Charity line under the homepage panorama */
.cathedral-charity { text-align: center; font-size: 13px; margin: 12px 0 30px; }

/* Footer office heading */
.fusion-footer .footer-office-title { font-size: 13px; letter-spacing: .05em; margin-bottom: 10px; color: var(--awb-color7); }

/* Slider captions on the header slider, as on the old site */
#sliders-container .slide-content .heading h2,
#sliders-container .slide-content .caption h3 { background: rgba(0, 0, 0, .4); padding: 4px 12px; display: inline-block; }

/* Homepage card tiles: square photo with the title on a dark band, as on the old site */
.cathedral-tiles .fusion-portfolio-content-wrapper { position: relative; overflow: hidden; }
.cathedral-tiles .fusion-image-wrapper img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.cathedral-tiles .fusion-portfolio-content {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important;
	padding: 14px 12px !important; background: rgba(0, 0, 0, .45); pointer-events: none; z-index: 5;
}
.cathedral-tiles .fusion-portfolio-content h2,
.cathedral-tiles .fusion-portfolio-content h2 a { color: #fff !important; font-size: 17px !important; line-height: 1.35 !important; margin: 0 !important; }
.cathedral-tiles .fusion-portfolio-content .fusion-portfolio-meta,
.cathedral-tiles .fusion-content-sep { display: none; }
/* Gold page numbers under each grid */
.fusion-portfolio .pagination .current { background: var(--awb-color5); border-color: var(--awb-color5); color: #fff; }

/* Footer colours (beige with navy text, as on the old site). Avada's compiled
   CSS omits the classic-footer rules, so they are set here explicitly. */
.fusion-footer-widget-area { background-color: #ede5d2; color: var(--awb-color7); padding: 40px 0 20px; }
.fusion-footer-widget-area a { color: var(--awb-color7); }
.fusion-footer-widget-area a:hover { color: var(--awb-color4); }
.fusion-footer-copyright-area { background-color: #ede5d2; border-top: 1px solid #ddd4be; }

/* Homepage panorama: a wide strip rather than the full-height photo */
.cathedral-panorama img { width: 100%; height: 440px; object-fit: cover; object-position: center 55%; }

/* Proclaimer back issues: covers only (titles like "2009_2 …" were hidden on the old site) */
.cathedral-covers .fusion-portfolio-content { display: none; }
.cathedral-covers .fusion-image-wrapper img { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
/* Proclaimer Live article titles */
.cathedral-articles .fusion-portfolio-content h2 { font-size: 15px !important; line-height: 1.4 !important; margin-top: 8px !important; }
.cathedral-articles .fusion-portfolio-content .fusion-portfolio-meta,
.cathedral-articles .fusion-content-sep { display: none; }
.cathedral-articles .fusion-image-wrapper img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

/* Phones: keep the header compact */
@media (max-width: 800px) {
	.fusion-header-tagline { font-size: 26px !important; line-height: 1.2 !important; }
	.fusion-logo img { max-height: 70px; width: auto; }
	.fusion-secondary-header .top-bar-tagline { display: none; }
}

/* Keep wide content (PDF viewer, large images) inside narrow screens */
.fusion-text { min-width: 0; max-width: 100%; }
.pdfemb-viewer, .pdfemb-viewer canvas { max-width: 100% !important; }

/* Main menu: stay on one line on narrower desktop/tablet screens,
   down to the width where Avada switches to the mobile menu. */
@media (max-width: 1060px) {
	.fusion-main-menu > ul > li { padding-right: 18px !important; }
	.fusion-main-menu > ul > li > a { font-size: 13px !important; }
}
@media (max-width: 900px) {
	.fusion-main-menu > ul > li { padding-right: 12px !important; }
	.fusion-main-menu > ul > li > a { font-size: 12px !important; }
}

/* ==========================================================================
   Our Lady of England, Storrington pages (Avada → Layouts → "Storrington")
   ========================================================================== */
.storrington-header .storrington-name {
	font-family: "Roboto Slab", Georgia, serif; font-size: clamp(26px, 3.8vw, 52px); line-height: 1.4;
	color: #fff; text-align: right; margin: 0;
}
.storrington-footer .fusion-text p { color: #fff; text-align: center; font-family: "Roboto Slab", Georgia, serif; margin-bottom: 10px; }
.storrington-footer .storrington-footer-main { font-size: 17px; }
.storrington-footer .storrington-footer-small { font-size: 14px; }
.storrington-footer a { color: #fff; text-decoration: underline; }

/* Navy content area with white text */
body:has(.storrington-content) #main { background: #2f3d7a; padding-bottom: 0; }
.storrington-content, .storrington-content p, .storrington-content li, .storrington-content td,
.storrington-content h1, .storrington-content h2, .storrington-content h3, .storrington-content h4,
.storrington-content strong, .storrington-content em { color: #fff !important; }
.storrington-content a { color: #a9dcf3; }
.storrington-content a:hover { color: #fff; }
.storrington-content .title-sep, .storrington-content .title-heading-left + .title-sep-container .title-sep { border-color: rgba(255, 255, 255, .5) !important; }
.storrington-content .fusion-portfolio .pagination { display: none; }

@media (max-width: 800px) {
	.storrington-header .storrington-name { text-align: center; }
	.storrington-header .fusion-imageframe, .storrington-footer .fusion-imageframe { display: block; text-align: center; }
}
.storrington-content .storrington-button { margin: 0 0 14px; }
/* Storrington: lined title in white, wide pictures, no grey band under short pages */
.storrington-content .fusion-title h1, .storrington-content .fusion-title .title-heading-left { color: #fff !important; }
.storrington-content .storrington-wide-image img { width: 100%; height: auto; margin-top: 20px; }
html:has(.storrington-content), body:has(.storrington-content) { background: #2eade0; }
@media (max-width: 1024px) { .storrington-header .storrington-name { margin-top: 20px; } }
/* SVP pages: portrait centred in a blue panel with its caption */
.storrington-content .storrington-portrait { background: #2eade0; text-align: center; padding: 25px 20px 10px; margin-bottom: 25px; }
.storrington-content .storrington-portrait img { display: inline-block; max-width: 300px; width: 100%; height: auto; }
.storrington-content .storrington-portrait p { font-size: 13px; margin: 8px 0 0; }
/* Storrington header: stack the church name under the drawing at 1024px and
   below, as the old site did (Avada's own medium breakpoint doesn't apply here). */
@media (max-width: 1024px) {
	.storrington-header .fusion-layout-column { width: 100% !important; flex-basis: 100% !important; max-width: 100% !important; }
	.storrington-header .fusion-layout-column .fusion-column-wrapper { padding-top: 0 !important; }
}
