/*
CTC Separate Stylesheet
Updated: 2026-04-01 14:47:39
*/

/* -----------------------------------------------
   PhotoSwipe grid gallery
----------------------------------------------- */

.fp-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.fp-photo-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.fp-photo-grid a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.fp-photo-grid a:hover img {
    transform: scale(1.05);
}

@media ( max-width: 768px ) {
    .fp-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 480px ) {
    .fp-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* PhotoSwipe caption — sits below the image in the padded zone */
.pswp__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 10px 20px 16px;
    box-sizing: border-box;
}

.pswp__caption-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pswp__caption-desc {
    font-size: 13px;
    line-height: 1.6;
}

.pswp__caption-desc p {
    margin: 0 0 0.4em;
}

.pswp__caption-desc p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------
   Font override: Raleway everywhere
----------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    font-family: 'Raleway', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

.portfolio-title-section h6 {
    font-family: 'Raleway', sans-serif;
}

/* Main-nav in capital letters */
li#site-navigation {
    text-transform: uppercase;
}


/* site title */
a.site-title {
    font-size: 25px;
}

p.site-description {
    font-size: 16px;
}

.site-branding .branding-inner-wrap {
    padding: 10px 0px;
}

/* hedaer */
.page-header .page-title {
    color: #222222;
    font-size: 30px;
    text-align: left;
}
.site-content {
    padding: 0;
}

@media screen and (max-width: 991px) {
    .site-content {
        padding: 0;
    }
}

/* -----------------------------------------------
   Sticky footer — tablet & desktop only
----------------------------------------------- */
@media screen and (min-width: 768px) {
    #page.site {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    .site-content {
        flex: 1 0 auto;
    }
    .site-footer {
        flex-shrink: 0;
    }
    /* WP admin bar offset for logged-in users */
    body.admin-bar #page.site {
        min-height: calc(100vh - 32px);
    }
}
@media screen and (min-width: 768px) and (max-width: 782px) {
    body.admin-bar #page.site {
        min-height: calc(100vh - 46px);
    }
}

/* -----------------------------------------------
   Portfolio grid item — always show title below thumbnail.
   Fully neutralises the plugin's fp-theme-one / fp-theme-two
   hover-reveal overlays so the caption sits in normal flow.
----------------------------------------------- */
.filterable-portfolio-item__content {
    text-align: center;
}

/* Pull the supporting-text block out of its absolute overlay
   and into normal flow beneath the image. */
.filterable-portfolio-item__supporting-text,
.fp-theme-one .filterable-portfolio-item__supporting-text,
.fp-theme-two .filterable-portfolio-item__supporting-text {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    background-color: transparent !important;
    backface-visibility: visible !important;
    padding: 0.75rem 0 0 !important;
}

/* Kill the dark-overlay pseudo that fp-theme-two slides in on hover. */
.fp-theme-two .filterable-portfolio-item__supporting-text:before,
.fp-theme-two .filterable-portfolio-item__supporting-text:after {
    content: none !important;
    display: none !important;
}

/* Title: dark text, always visible, normal flow. */
.filterable-portfolio-item__title,
.fp-theme-one .filterable-portfolio-item__title,
.fp-theme-two .filterable-portfolio-item__title {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    transform: none !important;
    transition: none !important;
    z-index: auto !important;
    color: #222 !important;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Hide the redundant "Details" button — the thumbnail already links to the single portfolio page. */
.filterable-portfolio-item__action.button,
.fp-theme-one .filterable-portfolio-item__action.button,
.fp-theme-two .filterable-portfolio-item__action.button {
    display: none !important;
}

/* Neutralise all hover-state rules from both theme variants; add 90% opacity. */
.filterable-portfolio-item__media img {
    transition: opacity 0.3s ease;
}

.filterable-portfolio-item__content:hover .filterable-portfolio-item__media img,
.fp-theme-one .filterable-portfolio-item__content:hover img,
.fp-theme-two .filterable-portfolio-item__content:hover img {
    transform: none !important;
    opacity: 0.65;
}
.fp-theme-one .filterable-portfolio-item__content:hover .filterable-portfolio-item__supporting-text,
.fp-theme-two .filterable-portfolio-item__content:hover .filterable-portfolio-item__supporting-text {
    opacity: 1 !important;
    transform: none !important;
}
.fp-theme-two .filterable-portfolio-item__content:hover .filterable-portfolio-item__supporting-text:after {
    left: auto !important;
}
.fp-theme-two .filterable-portfolio-item__content:hover .filterable-portfolio-item__supporting-text .filterable-portfolio-item__title {
    right: auto !important;
}