/* =========================================================
   WEAREGIANTS — GLOBAL SITE STYLES
   ========================================================= */


/* =========================================================
   01. RESET & BASIC SETTINGS
   ========================================================= */

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

::-moz-selection {
    background-color: #09f;
    color: #fff;
}

::selection {
    background-color: #09f;
    color: #fff;
}

:focus {
    outline: 0;
}

customhtml > * {
    position: relative;
    z-index: 10;
}


/* =========================================================
   02. GLOBAL PAGE SETTINGS
   ========================================================= */

body,
html {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html {
    position: relative;
}

body {
    background: #333;
    color: #000;
}

a:active {
    opacity: 0.7;
}


/* =========================================================
   03. BACKDROP
   ========================================================= */

#backdrop {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    max-width: 100%;
    z-index: 1;
}


/* =========================================================
   04. MAIN CONTENT CONTAINER
   ========================================================= */

main {
    background: #fff;
    clear: both;
    overflow: hidden;
    position: absolute;
    max-width: 100%;
    width: 100%;
    z-index: 2;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
}

main > div {
    -moz-flex: 1 0 auto;
    -webkit-flex: 1 0 auto;
    flex: 1 0 auto;
    width: 100%;
}


/* =========================================================
   05. SUBPAGE OVERLAY
   ========================================================= */

.subpage_overlay {
    display: block;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

body.homepage .subpage_overlay {
    display: none;
}


/* =========================================================
   06. GENERAL CONTENT ELEMENTS
   ========================================================= */

i,
em {
    font-style: italic;
}

b,
strong {
    font-weight: bold;
}

ul,
ol {
    margin: 0;
    padding: 0 0 0 1em;
}

sup {
    top: -0.4em;
    vertical-align: baseline;
    position: relative;
}

sub {
    top: 0.3em;
    vertical-align: baseline;
    position: relative;
}

img {
    border: 0;
    padding: 0;
}

blockquote {
    margin: 0;
    padding: 0 0 0 2em;
}

hr {
    background: rgba(127, 127, 127, 0.2);
    border: 0;
    height: 0.08em;
    display: block;
}

.bodycopy {
    display: none;
}

.container {
    min-height: 100%;
}

.content img {
    float: none;
    margin-bottom: 1em;
}

.clear:after {
    content: "";
    display: table;
    clear: both;
}

.loading[data-loading] {
    display: none;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
}


/* =========================================================
   07. CARGO EDITOR PRESETS
   ---------------------------------------------------------
   These settings are controlled by Cargo.
   Keep the special preset comments intact.
   ========================================================= */

[data-css-presets="true"] main {
    background-color: rgba(0, 0, 0, 0)/*!content_center*/;
    text-align: left /*!text_left*/;
    min-height: 100vh /*!content_stretch*/;

    -webkit-align-items: center /*!vertical_middle*/;
    align-items: center /*!vertical_middle*/;

    left: 0 /*!content_center*/;
    margin-left: auto /*!content_center*/;
    margin-right: auto /*!content_center*/;
    right: 0 /*!content_center*/;
}

[data-css-presets="true"] .content_padded {
    padding: 1.4rem/*!main_margin*/;
}

[data-css-presets="true"] .content_width {
    width: 100rem/*!content_center*/;
}

[data-css-presets="true"] #backdrop {
    width: 100% /*!background_cover*/;
}

[data-css-presets="true"] .subpage_overlay {
    background-color: rgba(255, 255, 255, 0.85)/*!subpage_overlay*/;
}


/* =========================================================
   08. TYPOGRAPHY
   ========================================================= */

/* Main body typography */

[data-predefined-style="true"] main {
    font-size: 2rem;
    font-weight: 400;
    color: rgb(0, 0, 0);

    font-family: "Big Caslon FB", Social /*!Persona*/;
    font-style: normal;
    line-height: 1.4;
}

/* =========================================================
   GLOBAL TEXT LINKS — NO UNDERLINES
   ---------------------------------------------------------
   Removes default underlines while preserving link colors.
   ========================================================= */

[data-predefined-style="true"] main a {
    text-decoration: none;
}

/* H1 — Primary headings */

[data-predefined-style="true"] h1 {
    font-family: "Big Caslon FB", Social /*!Persona*/;
    font-style: normal;
    font-weight: 700;

    padding: 0;
    margin: 0;

    font-size: 7rem;
    line-height: 1;
    color: rgb(0, 0, 0);

    text-rendering: optimizeLegibility;
}

[data-predefined-style="true"] h1 a {
    color: rgba(255, 255, 255, 1);
}


/* H2 — Secondary headings */

[data-predefined-style="true"] h2 {
    font-family: Oswald, Social /*!Google*/;
    font-style: normal;
    font-weight: 700;

    padding: 0;
    margin: 0;

    color: rgb(150, 150, 150);
    font-size: 1rem;
    line-height: 1.1;

    text-rendering: optimizeLegibility;
}

[data-predefined-style="true"] h2 a {
    color: rgb(150, 150, 150);
}


/* Small text — Red italic styling */

[data-predefined-style="true"] small {
    display: inline-block;

    font-size: 2.2rem;
    line-height: 1.3;

    font-family: "Big Caslon FB", Social /*!Persona*/;
    font-style: italic;
    font-weight: 400;

    color: rgba(198, 0, 0, 0.9);
}

[data-predefined-style="true"] small a {
    color: rgba(198, 0, 0, 0.9);
    border-bottom-width: 0.1em;
}


/* Improved text wrapping */

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

div[style*="max-width: 760px"] {
    text-wrap: pretty;
}


/* =========================================================
   09. IMAGE & ICON LINKS
   ---------------------------------------------------------
   Prevents unwanted borders beneath linked images.
   ========================================================= */

main a.image-link,
main a.icon-link,
main a.image-link:hover,
main a.icon-link:hover {
    border-bottom: 0;
    padding-bottom: 0;
}


/* =========================================================
   10. SLIDESHOW NAVIGATION — SITE-WIDE
   ---------------------------------------------------------
   Applies to all Cargo slideshows.

   Font size: 16px
   Alignment: Center
   Link color: Dark gray
   Hover color: Red
   Underlines: None

   Replaces the old page-specific rule for ID 460107.
   ========================================================= */

.slideshow-nav {
    text-align: center;
    font-size: 16px;
    line-height: 1.4;

    margin-bottom: 0.5em;
    padding-bottom: 12px;
}

/* Previous / Next links */

.slideshow-nav a,
[data-predefined-style="true"] main .slideshow-nav a {
    color: #1a1a1a !important;
    font-size: inherit;
    border-bottom: none !important;
    text-decoration: none !important;
}

/* Hover state */

.slideshow-nav a:hover,
[data-predefined-style="true"] main .slideshow-nav a:hover {
    color: #c60000 !important;
}


/* =========================================================
   11. BACKSTAGE ICON
   ========================================================= */

#backstage_icon {
    display: block;
}


/* =========================================================
   12. MOBILE LAYOUT — CARGO
   ---------------------------------------------------------
   Preserves the original Cargo mobile behavior.
   ========================================================= */

[data-css-presets="true"].mobile #plugin,
[data-css-presets="true"].mobile #backdrop,
.mobile #backdrop,
.mobile #plugin {
    position: relative;

    height: 50vh;
    min-width: 100%;
    width: calc(100% - 80rem) /*!right_fit*/;

    top: 0;
    bottom: auto;
    left: 0 /*!right_fit*/;
}

.mobile main,
[data-css-presets="true"].mobile main {
    position: relative;
    min-height: 10px;
    max-width: 100%;
    width: 100%;
}

.mobile main.content_width,
[data-css-presets="true"].mobile main.content_width {
    max-width: 100%;
    width: 100%;
}


/* =========================================================
   13. CASE STUDY INDEX
   ---------------------------------------------------------
   Controls the full-width project banners on the
   WeAreGiants Case Studies index page.
   ========================================================= */

/* Case study list */

.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Individual project banners */

.case-study-banner {
    display: block;
    position: relative;

    width: 100%;
    aspect-ratio: 1900 / 630;

    overflow: hidden;
    text-decoration: none;

    color: white;
    line-height: 0;
}


/* Cargo media containers */

.case-study-banner media-item,
.case-study-banner .media-item {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* Banner images */

.case-study-banner img {
    position: absolute !important;

    top: 0;
    left: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center;

    margin: 0;
    padding: 0;

    transition: transform 0.4s ease;
}


/* Dark gradient behind project titles */

.case-study-banner::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 70%
    );

    pointer-events: none;
    z-index: 1;
}


/* Project titles */

.case-study-title {
    position: absolute;

    bottom: 7%;
    left: 5%;

    z-index: 2;

    font-size: clamp(26px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;

    color: #fff;
    text-align: left;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}


/* Image hover effect */

.case-study-banner:hover img {
    transform: scale(1.025);
}


/* =========================================================
   14. CASE STUDY INDEX — MOBILE
   ---------------------------------------------------------
   Adjusts banner proportions, spacing, and typography.
   ========================================================= */

@media (max-width: 600px) {

    .case-study-list {
        gap: 12px;
    }

    .case-study-banner {
        aspect-ratio: 2 / 1;
    }

    .case-study-title {
        font-size: clamp(20px, 5vw, 34px);
        bottom: 7%;
        left: 5%;
    }

}

/* =========================================================
   LAPL EXHIBITIONS — HOVER IMAGE EFFECT
   ========================================================= */

.exhibition-hover {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Both images */
.exhibition-hover img {
    display: block;
    width: 100%;
    height: auto;
}

/* Second image */
.exhibition-hover img:nth-of-type(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Reveal second image on hover */
.exhibition-hover:hover img:nth-of-type(2) {
    opacity: 1;
}

/* =========================================================
   15. LADCR — NATIVE FOUR-COLUMN GRID
   ---------------------------------------------------------
   Cargo columns on desktop; two columns on mobile.
   ========================================================= */

.mobile .ladcr-native-grid[grid-row] {
    display: flex !important;
    flex-wrap: wrap !important;
}

.mobile .ladcr-native-grid > [grid-col] {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
}

@media (max-width: 767px) {

    .ladcr-native-grid[grid-row] {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .ladcr-native-grid > [grid-col] {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

}
/* =========================================================
   END OF WEAREGIANTS STYLESHEET
   ========================================================= */