/* Dan Tuffs — site customizations */

/* ── Homepage: centre and cap page caption heading ── */
.home #page_caption h1 {
    max-width: 630px;
    margin: 0 auto;
}

@media only screen and (min-width: 1025px) {
    body #page_caption {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .home #page_caption h1 {
        max-width: 381px;
    }
}

@media only screen and (max-width: 406px) {
    .home #page_caption h1 {
        max-width: 238px;
    }
}

/* ── lazysizes: gallery image fade-in ── */
/* Images start invisible (class added by PHP transform).                    */
/* lazysizes adds .lazyloaded when the real image has loaded; we fade it in. */
.portfolio_filter_wrapper img.lazyload,
.portfolio_filter_wrapper img.lazyloading {
    opacity: 0;
}
.portfolio_filter_wrapper img.lazyloaded {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* ── Task 8: iPad — make gallery links tappable in iOS Safari ── */
/* iOS Safari only fires click on elements marked as interactive.   */
a.fancy-gallery {
    cursor: pointer;
}

/* ── Task 4 + FB9-12: lightbox controls ── */

/* 9+10: disable slideshow autoplay and hide play/pause (done via JS slideshow:false) */

/* ── R2 items 13a-b-c-d-e / R3: X close button ── */
/* Base (all devices): SVG X with stroke-width=4 to match arrow thickness */
.ilightbox-toolbar.metro-white a.ilightbox-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cline x1='8' y1='8' x2='32' y2='32' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3Cline x1='32' y1='8' x2='8' y2='32' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-size: 80% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Desktop/tablet-landscape only (≥981px, matches iLightBox mobileMaxWidth:980):    */
/* 13b: 75% size  13a: no white box  13c: grey/off-white filter  13d/e: fade+hover   */
@media only screen and (min-width: 981px) {
    .ilightbox-toolbar.metro-white {
        height: 81px !important;
    }
    .ilightbox-toolbar.metro-white a.ilightbox-close {
        width: 81px !important;
        height: 75px !important;
        background-color: transparent !important;
        filter: brightness(0) invert(1) brightness(0.785) !important;
        transition: filter 0.25s ease !important;
    }
    .ilightbox-toolbar.metro-white a.ilightbox-close:hover {
        filter: brightness(0) invert(1) brightness(1) !important;
    }
}

/* ── R2 items 12+8: arrows — grey/off-white SVG chevrons (stroke-width 4) ── */
/* Item 12: stroke changed from white to #c8c8c8 (grey/off-white, less distracting) */
.ilightbox-button.ilightbox-next-button.metro-white.horizontal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 70'%3E%3Cpolyline points='8,8 32,35 8,62' fill='none' stroke='%23c8c8c8' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 50% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.ilightbox-button.ilightbox-prev-button.metro-white.horizontal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 70'%3E%3Cpolyline points='32,8 8,35 32,62' fill='none' stroke='%23c8c8c8' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 50% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Desktop side arrows — keep existing size */
.ilightbox-button.ilightbox-next-button,
.ilightbox-button.ilightbox-prev-button {
    width: 130px !important;
    height: 100px !important;
}

/* Mobile bottom toolbar */
.isMobile .ilightbox-toolbar a {
    width: 70px !important;
    height: 60px !important;
}

.isMobile .ilightbox-toolbar {
    height: 60px !important;
}

@media only screen and (min-width: 768px) and (max-width: 960px) {
  .standard_wrapper.standard_wrapper .one_half,
  .standard_wrapper.standard_wrapper .one_third,
  .standard_wrapper.standard_wrapper .one_fourth,
  .standard_wrapper.standard_wrapper .one_fifth {
      padding: 0 !important;
  }
}

/* ── custom-css.php output (inlined — file blocked by Cloudways Nginx) ── */
/* Note: #mobile_nav_icon display:none omitted — tg_sidemenu is active on this site */

.portfolio_nav { display:none; }

#mobile_nav_icon {
    display: none !important;
}

@media only screen and (max-width: 768px) {
	html[data-menu=leftmenu] .mobile_menu_wrapper
	{
		right: 0;
		left: initial;

		-webkit-transform: translate(360px, 0px);
		-ms-transform: translate(360px, 0px);
		transform: translate(360px, 0px);
		-o-transform: translate(360px, 0px);
	}
}

/* ── Preserve multiple spaces in page title (R2 item 7) ── */
/* Scoped to h1 only — applying to the wrapper div makes template newlines render as
   visible line breaks, adding unwanted height above/below the title. */
.page_title_inner h1 {
    white-space: pre-wrap;
}

/* ── Task 9: larger desktop nav text ── */
#menu_wrapper div .nav li > a {
    font-size: 14px !important;
}

/* ── R2 item 14 / R3: About & Contact page body text — 22px (≈1.6× base, reduced 20% from 28px) ── */
/* Targets paragraph text only ("Dan Tuffs has been…") — not the page heading */
.page-id-19 .inner_wrapper p,
.page-id-21 .inner_wrapper p {
    font-size: 22px;
    line-height: 1.6;
}

/* ── Task 9: larger mobile hamburger icon ── */
/* Original: width 25px, height 3px, border-top 3px solid, border-bottom 9px double */
/* Scaled ~1.4×                                                                       */
.header_style_wrapper #mobile_nav_icon {
    width: 35px;
    height: 4px;
    border-top-width: 4px;
    border-bottom-width: 12px;
    top: -1px;
}
