/* Base details style */
details {
    border-bottom: 2px solid #ccc;
    /* normal border */
    padding: 0.5em 0;
    transition: border-color 0.3s ease;
}

/* Summary styling */
details summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    /* remove default triangle */
    padding-right: 2em;
    /* space for the icon */
    /* font-weight: bold; */
    /* color: #000; */
    transition: color 0.3s ease;
}

/* Create the plus icon */
details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* When open — rotate plus into an X */
details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Title turns colour on open */
details[open] summary {
    color: #e63946;
    /* red text */
}

/* Border highlight when open */
details[open] {
    border-color: #e63946;
    /* red border */
}

/** Create a disabled button helper class **/
.disabled-button {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
}

.disabled-button:hover,
.disabled-button:focus {
    opacity: 0.6 !important;
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    transform: none !important;
}

/** Helper class used to reverse rows when on mobile **/
.reverse-on-mobile {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .reverse-on-mobile {
        flex-direction: column-reverse !important;
    }
}

/* Change bullet or number color */
li::marker {
    color: rgb(233, 61, 43);
}


/** Making separtor block smaller **/
.wp-block-separator {
    border-top: 1px solid;
}

/** Backgrounds **/
.perlin {
    position: relative;
    z-index: 1;
}

.perlin:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('../images/Perlin.webp');
    background-repeat: repeat;
    background-size: contain;
    opacity: 0.2;
}

.unusual {
    position: relative;
    z-index: 1;
}

.unusual:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('../images/ytbanner2.webp');
    background-repeat: repeat;
    background-size: contain;
    opacity: 0.2;
}

/** Red text effect **/
.text-shadow {
    text-shadow:
        -8px 3px 0 rgb(233, 61, 43, 0.2);

}

/** Measurement lines **/
.my-box {
    position: relative;
}

.my-box::before,
.my-box::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
}

.my-box::before {
    top: 0;
    background: url('../images/measurement_line.png') repeat-x;
    transform: scaleY(-1);
    /* flips horizontally */
    transform-origin: center;
    /* keeps it centered after flip */
}

.my-box::after {
    bottom: 0;
    background: url('../images/measurement_line.png') repeat-x;

}



/** Making categories look nicer on blog page **/
.wp-block-categories {
    display: flex;
    flex-wrap: wrap;
    /* wrap to next line if too many */
    gap: 1rem;
    /* space between items */
    list-style: none;
    /* remove bullets */
    justify-content: center;
    padding: 0;
    margin: 1rem 0;
}

.wp-block-categories li {
    font-size: 1.3rem;
    /* make font a bit bigger */
    font-weight: bold;
}

.wp-block-categories a {
    text-decoration: none;
    color: var(--wp--preset--color--text-white) !important;
    transition: color 0.3s ease;
}

.wp-block-categories a:hover {
    color: #e93d2b;
    /* hover red */
}

/* Highlight current category DOESNT WORK */
.wp-block-categories .current-cat>a {
    color: #e93d2b;
    font-weight: bold;
}


/* Camera border frame */
.camera-border {
    position: relative;
}

.camera-border::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background:
        linear-gradient(to right, #e63946, #e63946) top left,
        linear-gradient(to right, #e63946, #e63946) top right,
        linear-gradient(to right, #e63946, #e63946) bottom left,
        linear-gradient(to right, #e63946, #e63946) bottom right,
        linear-gradient(to bottom, #e63946, #e63946) top left,
        linear-gradient(to bottom, #e63946, #e63946) top right,
        linear-gradient(to bottom, #e63946, #e63946) bottom left,
        linear-gradient(to bottom, #e63946, #e63946) bottom right;
    background-size: 30px 3px, 30px 3px, 30px 3px, 30px 3px,
        3px 30px, 3px 30px, 3px 30px, 3px 30px;
    background-repeat: no-repeat;
    z-index: -1;
}

/** Spotlight section **/
.spotlight-section {
    position: relative;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    opacity: 0.6;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(255, 255, 255, 0.06) 30%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}


/** Sticky text used in portfolio on home page **/
.sticky {
    position: sticky;
    display: flex;
    text-align: center;
    top: 55%;
    line-height: 100px;
    transform: translateY(40%);
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    color: transparent !important;
    /* Removes fill */
    -webkit-text-stroke: 1px white;
    font-size: 8cqw !important; /* 10% of container width */
    /* Outline thickness & color */
}

/** Quote being pushed left on home page **/
.quote-margin {
    margin-left: 30%;
}

/** remove sticky text and quote margin for mobile **/
@media (max-width: 930px) {
    .sticky {
        display: none !important;
    }

    .quote-margin {
        margin-left: 0px;
    }
}

/** Utility classes **/
.hidden {
    display: none;
}

.relative {
    display: relative;
}

.justify-between {
    justify-content: space-between;
}

.z-99{
    z-index: 99;
}