/*
Theme Name: Hastings Yacht Club
Author: Malvolio
Version: 1.0
Tags: none
*/


/* =Reset default browser CSS. 
-------------------------------------------------------------- */

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


/* ----- FORMATTING ----- */

body {
    font-family: Roboto, sans-serif;
	font-weight: 300;
    font-size:   17px;
    padding:     0px;
    margin:      0px;
	color: #141428;
    background: #ffffff;
}

p {
	padding: 0px 0px 20px 0px;
	margin: 0px;
	line-height: 1.5;
}

 
h1 {
    font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	font-size: 50px;
    color: #0b0b84;
	margin: 0px 0px 20px 0px;
	text-decoration: none;
    text-transform: uppercase;
	line-height: 1;
}


h2 {
	color: #141428;
	font-size: 21px;
  	margin: 0px 0px 20px 0px;
	padding: 0px;
	font-weight: 300;
	line-height: 1.2;
}


h3 {
    font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	color: #0b0b84;
	font-size: 30px;
  	margin: 0px 0px 0px 0px;
	padding: 0px;
    text-transform: uppercase;
}

.race-results h3 {
	margin-top: 50px;
}


h4 {
	font-weight: 300;
	color: #141428;
	font-size: 12px;
  	margin: 0px 0px 20px 0px;
	padding: 0px;
	line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}


h5 {
    font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	color: #0b0b84;
	font-size: 20px;
  	margin: 0px;
	padding: 0px;
    text-transform: uppercase;
}



.dblue_block, .dblue_block h1, .dblue_block h2, .dblue_block h3, .dblue_block a, .modal-header h5 {
    color: #ffffff;
}


a {
    color: #141428;
	text-decoration: underline;
}

a:hover {
	color: #3399ff;
}



a.button, button.modal-button {
    background-color: #0b0b84;
    color: #ffffff; 
    display: block;
    padding: 12px 18px;
	text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
	border-radius: 20px;
	transition: 0.5s ease;
    border: 1px solid #ffffff;
}


.no-modal-button {
    background-color: #6d70b2;
  	color: #0b0b84;
    display: block;
    padding: 12px 18px;
	text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
	border-radius: 20px;
	transition: 0.5s ease;
    border: 1px solid #ffffff;
}


a.button:hover, button.modal-button:hover {
    background: #3399ff;
}


li {
	padding: 0px 0px 8px 0px;
}

li::marker {
	color: #3399ff;
}

ul {
	padding: 0px 0px 0px 15px;
	margin: 0px;
    list-style-type: circle;
}

hr {
	border: none;
	border-top: 1px solid #3399ff;
	margin: 18px 0px;
	clear: both;
}

b, strong {
	font-weight: 700;
}


/* ----- LAYOUT ----- */



#header {
	padding: 35px 10%;
  	width: 80%;
	display: grid;
	grid-template-columns: 240px 1fr;
	background: #0b0b84;
}

#logo img {
    max-width: 240px;
    width: 100%;
}



#menu {
	display: flex;
	justify-content: right;
    width: 100%;
	align-items: center;
}




/* ----- CONTENT BLOCKS ----- */


.cblock {
	width: 80%;
	padding: 60px 10% 60px 10%;
    float: left;
}


.fblock {
	width: 100%;
    float: left;
}


.white_block {
    background: #fff;
}

.grey_block {
    background: #dde0e6;
}

.lblue_block {
    background: #d7edff;
}

.dblue_block {
    background: #0b0b84;
}




    
.image-block {
	width: 100%;
    float: left;
	position: relative;
	height: 500px;
}


.imgbg_bg {
	overflow: hidden;
    background-size: cover;
	background-position: center;
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -10000;
}





.block_3col {
	display: grid;
	column-gap: 50px;
    row-gap: 0px;
	grid-template-columns: 1fr 1fr 1fr;
}


.block_2col50 {
	display: grid;
	column-gap: 50px;
    row-gap: 0px;
	grid-template-columns: 1fr 1fr;
}



.block_7030col {
	display: grid;
	column-gap: 50px;
    row-gap: 30px;
	grid-template-columns: 7fr 3fr;
}


.block_3070col {
	display: grid;
	column-gap: 50px;
    row-gap: 30px;
	grid-template-columns: 3fr 7fr;
}


.ue-grid {
	display: grid;
	gap: 10px;
	grid-template-rows: auto 1fr;
}


.event-list {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
}

.el-item {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 2fr 1fr;
	background: #d7edff;
	border-radius: 20px;
	padding: 25px;
	font-size: 18px;
}

.el-item a.button {
	display: block;
}


@media screen and (max-width: 725px) {
.el-item {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.el-item .el1 {
	grid-row: span 2 / span 2;
}
	
.el-item .el3 {
	grid-column-start: 2;
    grid-row-start: 2;
}
	
.image-block {
	height: 300px;
}

}

.imgcol {
	overflow: hidden;
    background-size: cover;
	background-position: center;
	border-radius: 20px;
}


.document-grid, .classifieds-grid {
	display: grid;
	gap: 50px;
	grid-template-columns: 1fr 1fr 1fr;
	margin-top: 50px;
}

.document-grid img {
	border: 1px solid #ccc;
}

.classifieds-grid div {
	border: 1px solid #ccc;
	border-radius: 20px;
	padding: 20px;
}





@media screen and (max-width: 800px) {
.block_2col50, .block_3col, .block_3070col, .block_7030col, .classifieds-grid {
	grid-template-columns: 1fr !important;
}
	
.imgcol {
	height: 300px;
}
	
.document-grid {
	grid-template-columns: 1fr 1fr !important;
}
}



.mgl-img-container img {
	border-radius: 20px;
}




.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* The Close Button */
a.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
	text-decoration: none;
		line-height: 16px;
}

.close:hover,
.close:focus {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}


 /* Modal Header */
.modal-header {
  padding: 20px;
  background-color: #0b0b84;
  color: #ffffff;
}

/* Modal Body */
.modal-body {
	padding: 20px;
	text-align: center;
}



/* Modal Content */
.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: auto;
  padding: 0;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatefade;
  animation-duration: 0.4s;
	  top: 20vh;
}

/* Add Animation */
@keyframes animatefade {
  from {opacity: 0}
  to { opacity: 1}
} 

.race-results {
	display: grid;
	gap: 20px;
}




#footer {
	width: 80%;
    padding: 45px 10% 45px 10%;
	float: left;
	background: #0b0b84;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}

#footer a {
	text-decoration: none;
    color: #ffffff;
}


.flogo {
	width: 200px;
	margin-bottom: 30px;
}




	
/* ----- FORMS ----- */

input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea {
	padding: 14px 14px 10px 14px !important;
	font-family: Roboto, sans-serif;
	color:#141428;
	font-size: 16px !important;
	background: #ffffff;
	border: 1px solid #0b0b84;
	font-weight: 300;
	margin-bottom: 5px;
    border-radius: 20px;
}


input[type="submit"], button, input.button, .gform_save_link {
    font-family: "Roboto Condensed", sans-serif;
    background-color: #0b0b84;
    color: #ffffff; 
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 18px;
	border-radius: 20px;
    text-transform: uppercase;
	transition: 0.5s ease;
    border: 1px solid #ffffff;
}


.gform_required_legend, .gform_wrapper.gravity-theme .gfield_required {
	display: none !important;
}

.gfield_description {
	font-size: 13px !important;
  margin-top: -10px !important;
}



.gform_wrapper.gravity-theme .description, .gform_wrapper.gravity-theme .gfield_description, .gform_wrapper.gravity-theme .gsection_description, .gform_wrapper.gravity-theme .instruction,
.gform_wrapper.gravity-theme .gfield_checkbox label, .gform_wrapper.gravity-theme .gfield_radio label {
	font-size: 16px !important;
}

.gform_wrapper.gravity-theme .gform_footer, .gform_wrapper.gravity-theme .gform_page_footer {
  display: flex;
}

.gform_wrapper.gravity-theme .gf_progressbar_title {
	color: #ffffff !important;
}

.gform_wrapper.gravity-theme .gform_drop_area {
	display: flex;
  	flex-direction: column;
}


.gform_footer {
	display: flex;
	justify-content: center;
}


.gform_wrapper.gravity-theme .gform_footer, .gform_wrapper.gravity-theme .gform_page_footer {
	padding: 0px !important;
	margin: 0px !important;
}


.gform_wrapper.gravity-theme .gsection {
  border-bottom: 1px solid #0b0b84 !important;
  margin-top: 30px;
}


.gform_wrapper.gravity-theme .gfield_consent_description {
  border: 1px solid #0b0b84 !important;
  padding: 15px !important;
  margin: 5px 0px !important;
  background: #fff;
  border-radius: 20px;
}



/* ----- IMAGES ----- */


.alignleft, img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright, img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 0px;
}
.aligncenter, img.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}

a img {
	border: none;
}


img {
    max-width: 100%;
    height: auto;
}


ul.tml-links {
	list-style-type: none;
	padding: 0px !important;
}


.tablepress {
	--head-bg-color: #ffffff !important;
}

.pdfemb-viewer {
	margin: 0 auto;
}