/*
Theme Name:   HND Month
Theme URI:    https://hndmonth.co.uk/
Description:  DMG HND Month Theme
Template:     frost
Version:      1.0.0
*/

.wp-block-navigation.items-justified-right {
    --navigation-layout-justification-setting: flex-end;
    --navigation-layout-justify: flex-end;
}

body {
    background: #F0F0F0;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.display-flex {
    display: flex !important;
    align-items: baseline !important;
    gap: 0 20px !important;
}

.display-col-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.display-col-flex > div {
    flex: 1 1 auto;
}

.display-hidden {
    display: none !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.wp-block-site-title {
    position: absolute;
    top:0;
}

.wp-block-site-logo {
    position: absolute;
    margin:0;
    top:-30px;
}

/* Expand content height */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height:100vh;
}

.wp-site-blocks >, .wp-site-blocks > footer {
    flex:0 0 auto;
}

.wp-site-blocks main {
    flex:1 0 auto;
}

/* Nav */

.hnd-nav-wrapper {
    padding-top: 30px !important;
    position: relative;
}
.wp-block-navigation-item {
    padding: 0 0.5rem 0rem 0.5rem !important;
}

.wp-block-navigation-item.current-menu-item {
    border-bottom: 2px solid #ffffff;
}

.wp-block-navigation-item:hover {
    color: var(--wp--preset--color--neutral);
}

.page-template-full-width article {
    margin-block-start: 0 !important;
}



/* Hero */

.header-hero img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.header-hero figure {
    width: 100%;
}


/* Registration Form */

.hnd-register-nav a {
    background-color: var(--wp--preset--color--primary);
    border: 1px solid #ffffff;
    padding: 0.25em 0.5em !important;
    color: #ffffff !important;
}

.hnd-register-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out; 
}

.hnd-register-container.expanded {
    border-bottom: 20px solid  var(--wp--preset--color--secondary);
}

.hnd-register-container iframe {
    max-width: 100% !important;
}

.hnd-register-container > div {
    padding: 0em 0 5em;
}

.hnd-register-container .wp-block-heading {
    margin-top:20px !important;
}

.block-editor-iframe__body .hnd-register-container {
    max-height: initial;
}

/* Logos Carousel */

.logo-carousel-container {
    overflow: clip;
}

.logo-carousel {
    width: max-content;
    display: flex;
    animation: none;
    -webkit-animation: none;
    max-width: none;
    grid-column-gap: 6.5em;
    justify-content: center;
    align-items: center;
    padding-top: 1em;
    padding-bottom: 1em;
    display: flex;
    position: relative;
}

.logo-carousel .carousel-item {
    margin-right: 50px; 
}

.logo-carousel .carousel-item img {
    max-height:52px;
}

@keyframes logoscroll {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--carousel-width)));
        -webkit-transform: translateX(calc(-1 * var(--carousel-width)));
    }
}
@-webkit-keyframes logoscroll {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);            
    }
    100% {
        transform: translateX(calc(-1 * var(--carousel-width)));
        -webkit-transform: translateX(calc(-1 * var(--carousel-width)));            
    }
}


/* Jetpack Image Popup */
.jp-carousel-overlay {
    background: rgba(0,0,0,0.8);
}

.jp-carousel-close-hint {
    width: 60px;
    height: 60px;
}

.jp-carousel-close-hint svg {
    height: 100%;
    width: 100%;
}

.jp-carousel-overlay .swiper-button-prev svg, .jp-carousel-overlay .swiper-button-next svg {
    height: 50px;
    width: 40px;
}


@media (max-width: 1024px)  {

    .wp-block-site-logo {
        position: relative;
        top:0;
        text-align: center;
    }

    .hnd-nav {
        flex-direction: column;
    }

    .hnd-nav-wrapper {
        padding-top: 20px !important;
    }

    .hnd-nav > div {
        flex-basis: 100% !important;
    }

    .hnd-nav nav ul {
        justify-content: space-around;
    }

    .header-hero img {
        height: 200px;
    }
}

@media (max-width: 600px)  {

    .wp-block-site-logo {
        position: absolute;
        top:12px;
        width: 130px;
    }

    .hnd-nav {
        flex-direction: row;
    }

    .hnd-nav > div {
        flex-basis: 100% !important;
    }

    .hnd-nav nav ul {
        justify-content: space-around;
    }

    .header-hero img {
        height: 200px;
    }

}



.paperlogos img {
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    max-width: 200px; 
}

.paperlogos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px; 
	max-width: 1600px;
    margin: auto;
}

.paperlogos figure {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px; 
    overflow: hidden; 

}

.paperlogos > * {
    margin: 0;
    border-radius: 10px;
    width: 100%;
    
}

.paperlogos a {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    padding: 10px;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3), inset -2px -2px 4px rgba(0,0,0,0.5); 
    border:3px solid #e6007e4a;
    transition: all 0.3s ease; 
}

.paperlogos a:hover, .paperlogos a.active {
    background: rgba(255, 255, 255, 0); 
    color: #000000;
    box-shadow: inset 2px 2px 15px rgba(0,0,0,0.2);
    border: 3px solid white; 
}

.logo-localnewspapers {
    grid-column: 5;
    grid-row: 1 / 4; 
}

@media (max-width: 1280px) {
    .paperlogos {
        grid-template-columns: repeat(3, 1fr);
    }
    .logo-localnewspapers {
        grid-column: 1 / 4;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .paperlogos {
        grid-template-columns: repeat(1, 1fr); 
    }
    .logo-localnewspapers {
        grid-column: 1; 
        grid-row: auto; 
    }
    .paperlogos a {
        padding: 10px; 
    }
}

.paperlogos-container {
   box-shadow: 0 3px 14px rgba(0,0,0,0.2);
   position: relative;
   border-top: #ffffff 4px solid;
   border-bottom: #ffffff 4px solid;
}

.paperdetails > * {
    display: none;
    overflow: hidden;
    height: 0;
    transition: height 0.5s ease-out;
}

.paperdetails > *.active {
    display: block;
    height: auto; 
}

.paperdetails .wp-block-columns > div {
    border-right: var(--wp--preset--color--secondary) 1px solid;
}

.paperdetails .wp-block-columns > div:last-child {
    border-right: 0;
}

@media (max-width: 768px) {
    .paperdetails .wp-block-columns > div {
        border-right: 0;
    }
}


/* Reader savings page */

.reader-newspapers figure a img {
    transition:0.2s;
}

.reader-newspapers figure a:hover img {
    transform: scale(1.1);
}

.reader-block {
	max-width:750px;
}

.newspapers-cols img {
	width:100%;
	max-height:35px;
}

.door img {
position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    min-width: 1000px;
    height: auto;
   
    top: 50%;
}

.flex-centre {
	display: flex;

	flex-direction:column;
	justify-content:center;
	    background-image: url(https://hndmonth.co.uk/wp-content/uploads/2024/05/fuschiadoor-l.jpg);
    background-position: center;
    background-size: 1500px;
    background-repeat: no-repeat;
}

.flex-centre .entry-content {
	    max-width: 1600px;
    margin: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

.reader-heading {
	  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
	    font-size: 80px;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
}

.reader-subheading {
	    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);

}

.hidden {
	display:none;
}

.wp-admin .paperdetails > * {
    display: block;
    overflow: auto;
    height: auto;
}

/* Competitions */

.hndtable th {
    background: var(--wp--preset--color--secondary);
    color: #ffffff;
}
.hndtable tr {
    background:rgb(230 0 126 / 50%);
    color:#333333;
}

.hndtable td, .hndtable thead {
    border-color: #ffffff !important;
    border-width:1px;
    
}

.hndform h3.gsection_title {
    margin: 0;
    line-height:1em;
    padding:10px;
    color:#ffffff !important;
		font-size:1.25rem;
}

.hndform .gfield--type-section {
    border: none !important;
    background: #2d438d;
    padding: 0 !important;
    /* margin: 0; */
}

.hndform .gfield_checkbox {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr); 
    grid-auto-rows: auto; 
    gap: 10px; 
}


.hndform .gsurvey-likert-choice-label {
    padding-left: 5px;
    padding-right: 5px;
}

.hndform .gsurvey-likert-choice-label, .hndform .gfield_checkbox label {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color:#33448b !important
}

.hndform .gfield--type-survey legend.gfield_label, .hndform .gfield--type-survey > label, .gfield--width-full label.gfield_label.gform-field-label {
    font-weight:600 !important;
    font-size:1.0rem !important;
    color:#da117e !important;
}


.competitions-header {
    z-index:-1;
		box-shadow: inset 1px 10px 40px rgba(0, 0, 0, 0.125);
}

.single-competitions .header-hero {
    display: none;
}

.current-menu-item.hnd-register-nav {
      border-bottom: none !important;
}