/*
Theme Name: Paranoid WordPress Theme
Text Domain: paranoid-wordpress-theme
Version: 1.0.7
Author: Elle
Description: Paranoid WordPress Theme
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 
*/

/* --------------------------------------------------------------------------------------------- */
/*  Typefaces
/* --------------------------------------------------------------------------------------------- */
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-MediumItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-MediumOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-DemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-DemiBoldOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-BoldOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: block;
}
/* --------------------------------------------------------------------------------------------- */
/*  CSS reset and other
/* --------------------------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  vector-effect: non-scaling-stroke;
}

body, html {
  border: none;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
  font-style: italic;
  shape-margin: 1rem;
  display: block;
}

p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
  line-height: var(--line-height);
}

textarea {
  overflow: auto;
  resize: vertical;
}

input:focus, input:focus-visible {
  border: none;
  box-shadow: none;
  outline: none;
}

/* --------------------------------------------------------------------------------------------- */
/*  WP reset
/* --------------------------------------------------------------------------------------------- */
.wp-block-columns {
  margin: 0;
}

.wp-block-image img, .wp-block-post-featured-image img {
  height: 100%;
}

.wp-block-cover, .wp-block-cover-image {
  min-height: var(--image-size-1);
}

.wp-block-image figcaption, .wp-block-table figcaption {
  margin: 0.7em 0 0 0;
}

.wp-block-pullquote {
  padding: 0;
  margin: 0;
}

.wp-block-code {
  margin: 0;
}

/* --------------------------------------------------------------------------------------------- */
/*  Variables
/* --------------------------------------------------------------------------------------------- */
:root {
  --font-family-heading: "Quincy", serif;
  --font-family: "Greycliff", sans-serif;
  --fs-body: clamp( 1.6rem, 1.1vw, 2rem );
  --fs-h1: clamp( 3.4rem, 3.89vw, 7.4rem);
  --fs-h2: clamp( 3.4rem, 3vw, 5.7rem );
  --fs-h3: clamp( 2.7rem, 2.1vw, 4rem );
  --fs-h4: clamp( 2.1rem, 1.47vw, 2.8rem );
  --fs-h5: clamp( 2.05rem, 1.42vw, 2.7rem );
  --h2-space: 1.4em 0 .25em 0;
  --h3-space: 1.7em 0 0 0;
  --h4-space: 2em 0 0 0;
  --colour-text: hsl(0, 0%, 13%);
  --container-space: 7vw;
  --space: clamp(1.8rem, 6vmin, 4rem);
  --background-colour: hsl(0, 0%, 96.1%);
  --background-colour-secondary: hsl(0, 0%, 98%);
  --background-colour-accent: hsl(213, 15%, 49%);
  --colour-links: hsl(222, 70%, 41%);
  --box-shadow: 0 1rem 2rem hsla(0, 0%, 0%, 0.11);
  --header-size: clamp( 5em, 11.6vmin, 5.45em );
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --font-weight-bolder: 700;
  --font-weight-black: 800;
  --line-height: 1.5;
  --line-height-heading-h1: .9;
  --line-height-heading: 1;
  --letter-spacing: .02em;
  --image-size-1: clamp( 16.5em, 50vmin, 25em );
  --image-size-2: clamp( 18em, 45vmin, 23em );
  --image-size-3: clamp( 16.5em, 85vmin, 40em );
  --content-size-small: 25em;
  --content-size: 35em;
  --content-size-wide: 16em;
  --button-width: 3rem;
}

/* --------------------------------------------------------------------------------------------- */
/*  Document
/* --------------------------------------------------------------------------------------------- */
html {
  font-size: max(63%, 0.51vw);
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: none;
}

html[data-modal-active=true] {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
  }
}
body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  background-color: var(--background-colour);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-medium);
  min-height: 100vh;
  min-height: 100svh;
  width: 100vw;
  overflow-x: hidden;
  text-align: left;
}

[data-modal-active=true] body {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  overflow: hidden;
}

/* --------------------------------------------------------------------------------------------- */
/*  Text
/* --------------------------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  text-wrap: balance;
  margin: 0;
}

h1, h2, .small {
  line-height: var(--line-height-heading-h1);
}

h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
}

h1 {
  font-size: var(--fs-h1);
  padding-bottom: 0.1em;
}

.small {
  font-size: var(--fs-h2);
  padding-bottom: 0.25em;
}

h2 {
  font-size: var(--fs-h2);
  padding: var(--h2-space);
}

h3 {
  font-size: var(--fs-h3);
  padding: var(--h3-space);
}

h4 {
  font-size: var(--fs-h4);
  padding: var(--h4-space);
}

h5, h6 {
  font-size: var(--fs-h5);
  padding: var(--h4-space);
}

h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  padding-top: 0;
}

p {
  padding: 1.2em 0 0 0;
  margin: 0;
}

p:first-child {
  padding: 0;
}

ol, ul {
  padding: 1.2em 0 0 2em;
}

li {
  padding-top: 0.5rem;
}

li:first-child {
  padding-top: 0;
}

a {
  color: hsl(222, 70%, 41%);
  text-decoration: underline;
  cursor: pointer;
  overflow-wrap: break-word;
}

.no-content-space {
  padding: 0;
}

.text-align {
  text-align: center;
}

.font-weight-regular {
  font-weight: var(--font-weight-regular);
}

figcaption {
  font-size: calc(var(--fs-body) / 1.3);
  text-align: center;
  font-style: italic;
}

.wp-block-quote p {
  font-family: var(--font-family-heading);
  font-size: var(--fs-h3);
  text-align: center;
  font-style: italic;
  line-height: 1.1;
}

.wp-block-pullquote cite {
  font-size: calc(var(--fs-body) / 1.3);
  font-style: normal;
}

.wp-block-table td, .wp-block-table th {
  font-size: calc(var(--fs-body) / 1.2);
  border-color: hsl(0, 0%, 84%);
  background-color: var(--background-colour-secondary);
}

.wp-block-code {
  background-color: var(--background-colour-secondary);
  padding: var(--space);
  border: 1px solid hsl(0, 0%, 84%);
}

/* --------------------------------------------------------------------------------------------- */
/*  Layout
/* --------------------------------------------------------------------------------------------- */
.col-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: clamp(7.9rem, 5.1vw, 9.8rem);
}

.site-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  padding: 1em var(--container-space);
  width: 100%;
  min-height: var(--header-size);
}

.col-menu {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 4.5rem;
}

.col-menu a {
  color: var(--colour-text);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.col-menu a:hover, .col-menu a:focus, .col-menu a:focus-visible {
  opacity: 0.6;
}

.first-section, .second-section, .news-grid, .gallery-section, .events-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.first-section {
  background-color: var(--background-colour-secondary);
}

.first-image, .second-image {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  height: var(--image-size-1);
}

.container, .second-section, .gallery-section {
  padding: var(--container-space);
}

.single-page-title {
  padding: calc(var(--container-space) - 1em) var(--container-space) var(--container-space) var(--container-space);
}

.second-section-text {
  padding-top: 7vw;
}

.content-size, .content-size-wide, .content-size-device {
  margin: 0 auto;
  width: 100%;
}

.space-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.content-size-small {
  max-width: var(--content-size-small);
}

.content-size {
  max-width: var(--content-size);
}

.content-size-wide {
  max-width: var(--content-size-wide);
}

.content img {
  margin: 0 auto;
}

.gallery-section {
  gap: clamp(1.2em, 2vw, 1.9em);
}

.gallery-section img {
  width: 100%;
  height: var(--image-size-1);
}

.gallery-section-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--background-colour-secondary);
  padding: 5vw;
}

.page-image {
  height: var(--image-size-1);
  min-height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.featured-image-single img {
  height: var(--image-size-1);
  min-height: 100%;
  -o-object-position: center;
     object-position: center;
}

.page-layout {
  max-width: 100%;
}

footer {
  padding: 0 var(--container-space) var(--container-space) var(--container-space);
  text-align: center;
}

footer p {
  line-height: var(--line-height-heading);
}

.footer-link a {
  font-size: calc(var(--fs-body) / 1.3);
  color: var(--colour-text);
  opacity: .6;
  padding: 0;
}

.copyright {
  font-family: var(--font-family-heading);
  font-size: calc(var(--fs-h5) / 1.2);
  line-height: var(--line-height-heading);
  opacity: .8;
  padding-bottom: .4em;
}

/* --------------------------------------------------------------------------------------------- */
/*  News section frontpage
/* --------------------------------------------------------------------------------------------- */
.news-section {
  padding: 0 var(--container-space);
}

.news-section li {
  display: grid;
  grid-template-columns: 1fr;
}

.news-section-text-first-news {
  padding: 5vw 0 0 0;
}

.news-section-text-second-news li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px dashed hsl(0, 0%, 68%);
}

.news-section-text-first-news-title a {
  font-family: var(--font-family-heading);
  color: var(--colour-text);
  text-decoration: none;
  padding: 0 0 0.4em 0;
}

.news-section-excerpt {
  font-size: calc(var(--fs-body) / 1.15);
  opacity: 0.8;
}

.news-section-text-second-news-title {
  font-size: var(--fs-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  padding: 0;
  width: 50%;
}

.news-section-text-second-news-title a {
  font-family: var(--font-family);
  color: var(--colour-text);
  text-decoration: none;
}

.news-section-news-card-meta {
  flex-direction: row;
  gap: 0;
  font-size: calc(var(--fs-body) / 1.3);
  font-weight: var(--font-weight-bold);
  padding: calc(var(--space) * 1.25) 0 calc(var(--space) * 1.75) 0;
  line-height: 1.4;
  border-bottom: 1px dashed hsl(0, 0%, 68%);
}

/* --------------------------------------------------------------------------------------------- */
/*  Page table of content
/* --------------------------------------------------------------------------------------------- */
.table-of-content-title {
  font-weight: var(--font-weight-bolder);
  padding: 5rem 0 2rem 0;
}

.table-content-list {
  padding: 0;
  border-top: 1px dashed hsl(0, 0%, 68%);
}

.table-content-list li {
  list-style-type: none;
  padding: 2rem 0;
  border-bottom: 1px dashed hsl(0, 0%, 68%);
}

/* --------------------------------------------------------------------------------------------- */
/*  News
/* --------------------------------------------------------------------------------------------- */
.news-grid {
  gap: calc(var(--space) * 1.5);
  padding: 0 var(--container-space) var(--container-space) var(--container-space);
}

.news-grid li {
  display: flex;
  flex-direction: column;
  background-color: var(--background-colour-secondary);
  box-shadow: var(--box-shadow);
  padding: 0;
}

.news-grid img {
  height: clamp(200px, 15vw, 600px);
}

.news-card-title {
  padding: var(--space) var(--space) 0.4em var(--space);
}

.news-card-title a {
  font-family: var(--font-family-heading);
  color: var(--colour-text);
  text-decoration: none;
}

.excerpt {
  flex: 1 0 auto;
  font-size: calc(var(--fs-body) / 1.15);
  padding: 0 var(--space);
  opacity: 0.8;
}

.news-card-meta {
  flex-direction: row;
  gap: 0;
  font-size: calc(var(--fs-body) / 1.3);
  font-weight: var(--font-weight-bold);
  padding: 4em var(--space) var(--space) var(--space);
  line-height: 1.4;
}

.news-card-meta p {
  line-height: var(--line-height-heading);
}

.news-avatar img {
  width: 3em;
  height: auto;
  margin-right: 0.7em;
  border-radius: 50%;
}

.news-card-author {
  gap: 0;
}

.news-card-date {
  font-size: calc(var(--fs-body) / 1.5);
  font-weight: var(--font-weight-regular);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------------------------- */
/*  Events
/* --------------------------------------------------------------------------------------------- */
.events-grid {
  gap: 2em;
  padding: 0 var(--container-space) var(--container-space) var(--container-space);
  text-align: center;
}

.events-grid li {
  display: flex;
  flex-direction: column;
  background-color: var(--background-colour-secondary);
  box-shadow: var(--box-shadow);
  padding: 0;
}

.events-grid img {
  height: clamp(200px, 11vw, 600px);
}

.event-card-date {
  font-family: var(--font-family-heading);
  font-size: calc(var(--fs-h3) * 1.1);
  margin: 0.7em 2rem;
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  opacity: 0.36;
}

.event-card-title {
  padding: 1.7em 2rem 2em 2rem;
  flex: 1 0 auto;
  font-size: var(--fs-body);
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.event-card-title a {
  color: var(--colour-text);
  text-decoration: none;
}

.event-card-time {
  padding: 0 2rem 1.7em 2rem;
  line-height: 1.1;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------------------------- */
/*  News and events meta
/* --------------------------------------------------------------------------------------------- */
.single-post-meta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: hsl(0, 0%, 54.9%);
  padding: 2.65vw 0 0 0;
  line-height: var(--line-height-heading);
}

.single-post-meta p {
  line-height: var(--line-height-heading);
}

.clock-image img {
  width: 1.2em;
  height: auto;
  margin: 0 0.7em 0 1.5em;
}

.author-name {
  font-style: italic;
}

/* --------------------------------------------------------------------------------------------- */
/*  Comments
/* --------------------------------------------------------------------------------------------- */
.comments {
  padding-top: calc(var(--container-space) - 1.5em);
}

.comments-avatar-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5em 0 0 0;
}

.comments-avatar img {
  width: 4em;
  height: auto;
  border-radius: 50%;
}

.comments-author-name {
  font-size: var(--fs-h5);
  font-family: var(--font-family-heading);
  margin-left: 1rem;
}

.comments-date-content {
  padding: 0 0 1.5em 0;
  border-bottom: 1px dashed hsl(0, 0%, 68%);
}

.comment-date {
  font-size: calc(var(--fs-body) / 1.5);
  margin: 1.2em 0 0.5em 0;
  font-weight: 500;
  letter-spacing: 0.09em;
  opacity: 0.7;
  font-style: italic;
}

.comment-reply-title, .logged-in-as, .must-log-in, label[for=comment] {
  display: none;
}

.comment-form {
  padding-top: 0.5em;
}

.comment-form textarea {
  background-color: var(--background-colour-secondary);
  border-color: hsl(0, 0%, 84%);
  padding: 1em;
}

.comment-form textarea:focus, .comment-form textarea:focus-visible, .sce-comment-text:focus, .sce-comment-text:focus-visible {
  border-color: hsl(0, 0%, 68%);
  outline: 0;
}

.form-submit #submit {
  font-size: calc(var(--fs-body) / 1.1);
  color: hsl(0, 0%, 100%);
  background-color: hsl(0, 0%, 17%);
  padding: 0.9em 2.5em;
  border-radius: 0;
  letter-spacing: 0.04em;
  transition: all 0.3s ease-in-out;
}

.form-submit #submit:hover {
  background-color: hsl(0, 0%, 25%);
}

/* --------------------------------------------------------------------------------------------- */
/*  Edit comments
/* --------------------------------------------------------------------------------------------- */
@keyframes showContainer {
  0% {
    opacity: 0;
    height: auto;
  }
  100% {
    opacity: 1;
    height: auto;
  }
}
.sce-hide {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.sce-show {
  animation: showContainer 0.6s ease-in-out;
  opacity: 1;
  height: auto;
}

.sce-comment-text {
  background-color: var(--background-colour-secondary);
  border: 1px solid hsl(0, 0%, 84%);
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  padding: 1em;
  width: 100%;
  height: 7em;
}

.sce-edit-button a {
  font-size: calc(var(--fs-body) / 1.3);
  color: var(--colour-text);
  opacity: 0.6;
  text-decoration: none;
}

.sce-edit-button a:hover {
  opacity: 1;
  text-decoration: underline;
}

.sce-edit-comment {
  margin: 1.2em 0 0 0;
  line-height: var(--line-height-heading);
}

.sce-comment-edit-buttons-group {
  display: flex;
  flex-direction: row;
  margin: 0.5em 0;
  gap: 1em;
}

.sce-comment-save, .sce-comment-cancel, .sce-comment-delete {
  font-family: var(--font-family);
  font-size: calc(var(--fs-body) / 1.3);
  border: none;
  padding: 0;
  opacity: 0.6;
  background-color: transparent;
  cursor: pointer;
}

.sce-comment-save:hover, .sce-comment-cancel:hover, .sce-comment-delete:hover {
  opacity: 1;
}

.sce-loading img {
  display: none;
}

/* --------------------------------------------------------------------------------------------- */
/*  Conditional menu items and buttons
/* --------------------------------------------------------------------------------------------- */
body.logged-in .menu-entry-hide-signed-in {
  display: none;
}

body:not(.logged-in) .menu-entry-hide-signed-out {
  display: none;
}

/* --------------------------------------------------------------------------------------------- */
/*  Application form
/* --------------------------------------------------------------------------------------------- */
#form_application-form {
  padding: 0;
  margin: var(--space) 0 0 0;
}

#form_application-form fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

#form_application-form .frm_fields_container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}

.form-apply_form-field {
  display: flex;
  flex-direction: column;
}

.form-apply_form-field label {
  padding: 1em 0 0.2em 0;
}

.form-apply_form-field input, .form-apply_form-field textarea {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  background-color: var(--background-colour-secondary);
  line-height: var(--line-height-heading);
  width: 100%;
  border: 1px solid hsl(0, 0%, 84%);
  border-radius: 0;
  padding: 1em;
}

.form-apply_form-field input:focus, .form-apply_form-field input:focus-visible {
  border: 1px solid hsl(0, 0%, 68%);
  box-shadow: none;
  outline: none;
}

.form-apply_form-field textarea:focus, .form-apply_form-field textarea:focus-visible {
  border: 1px solid hsl(0, 0%, 68%);
  box-shadow: none;
  outline: none;
}

.form-apply_form-field input {
  min-height: 2em;
}

.form-apply_form-field textarea {
  min-height: 9em;
}

.form-agreement .frm_checkbox {
  padding: 0.3em 0 0 0;
}

.form-agreement input[type=checkbox] {
  width: 1.5em;
  height: 1.5em;
  accent-color: var(--colour-text);
  margin: 0;
}

.form_form-submit button {
  font-size: calc(var(--fs-body) / 1.1);
  color: hsl(0, 0%, 100%);
  background-color: hsl(0, 0%, 17%);
  padding: 0.9em 2.5em;
  border: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.form_form-submit button:hover {
  background-color: hsl(0, 0%, 25%);
}

.frm_error {
  font-size: calc(var(--fs-body) / 1.5);
  color: red;
  padding: 0.3em 0 0 0;
}

.frm_message p {
  padding: 1.2em 0 0 0;
  font-weight: var(--font-weight-bold);
}

.frm_screen_reader {
  display: none;
}

/* --------------------------------------------------------------------------------------------- */
/*  404
/* --------------------------------------------------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-size));
  min-height: calc(100svh - var(--header-size));
  justify-content: center;
  text-align: center;
}

.error-page-header {
  font-size: calc(var(--fs-h1) * 4);
  padding: 0;
  margin-top: -15vmin;
}

.error-page-text1 {
  font-size: var(--fs-h4);
  padding: 0;
}

.error-page-text2 {
  padding-top: .1em;
}

/* --------------------------------------------------------------------------------------------- */
/*  Menu button
/* --------------------------------------------------------------------------------------------- */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 0;
  margin-left: 3.5rem;
  z-index: 9999;
}

.line {
  position: absolute;
  width: 3.1rem;
  height: 0.2rem;
  background-color: var(--colour-text);
  transition: all 0.5s ease-in-out;
}

.opened .line {
  background-color: var(--background-colour-secondary);
}

.top {
  transform: translateY(-0.6rem);
}

.bottom {
  transform: translateY(0.6rem);
}

.opened .top {
  transform: rotate(135deg);
}

.opened .middle {
  transform: translateX(-3rem);
  background: transparent;
}

.opened .bottom {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------------------------- */
/*  Full screen menu
/* --------------------------------------------------------------------------------------------- */
.fullscreen-menu {
  position: absolute;
  z-index: 1000;
  background-color: var(--background-colour-accent);
  color: var(--background-colour-secondary);
  top: 0;
  left: 0;
  width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  overflow: auto;
  display: none;
}
[data-modal-active=true] .fullscreen-menu {
  display: grid;
  grid-template-columns: 1fr;
  animation: fade-in 700ms forwards;
}

.fullscreen {
  min-height: 100vh;
  min-height: 100svh;
}

.fullscreen-content {
  display: grid;
  grid-template-columns: 1fr;
}

.mobile-account-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  border-width: 1px 0;
  border-color: hsla(0, 0%, 98%, 0.18);
  border-style: solid;
  padding: 1.5em 0;
  margin: 8rem var(--container-space) 0 var(--container-space);
}

.icon, .icon img {
  width: 1.2em;
  height: auto;
  line-height: 0;
}

.icon-smaller, .icon-smaller img {
  width: 1.15em;
}

.icon-small, .icon-small img {
  width: 0.99em;
}

.fullscreen-section1 {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: calc(var(--space) * 2) var(--container-space) calc(var(--space) * 3) var(--container-space);
}

.fullscreen-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.fullscreen-section2, .fullscreen-section3 {
  display: flex;
  flex-direction: column;
  padding: 0 var(--container-space);
}

.fullscreen-section4 {
  display: flex;
  flex-direction: column;
  border-width: 1px 0 0 0;
  border-color: hsla(0, 0%, 98%, 0.18);
  border-style: solid;
  padding: 1.5em 0 0 0;
  margin: calc(var(--space) * 2) var(--container-space) var(--space) var(--container-space);
}

.fullscreen-section1 a {
  font-family: var(--font-family-heading);
  font-size: var(--fs-h1);
  color: var(--background-colour-secondary);
  text-decoration: none;
  line-height: var(--line-height-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fullscreen-section3 p, .fullscreen-section2 p {
  font-size: calc(var(--fs-body) / 1.3);
  opacity: 0.9;
  max-width: var(--content-size-small);
}

.fullscreen-section4 a {
  font-size: calc(var(--fs-body) / 1.3);
  color: var(--background-colour-secondary);
  opacity: 0.9;
  text-decoration: none;
}

.fullscreen-section1 a:hover, .fullscreen-section4 a:hover {
  text-decoration: underline;
}

.account-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}

.account-buttons a {
  border: 1px solid hsla(0, 0%, 100%, 0.28);
  display: inline-block;
  font-size: calc(var(--fs-body) / 1.3);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  color: hsl(0, 0%, 100%);
  padding: 1.5em 3em;
  margin-top: 1.5em;
  transition: all 0.3s ease-in-out;
}

.account-buttons a:hover {
  background-color: var(--background-colour-secondary);
  color: var(--colour-text);
  border-color: var(--background-colour-secondary);
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* --------------------------------------------------------------------------------------------- */
/*  Media queries
/* --------------------------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 1025px) {
  .first-section {
    grid-template-columns: repeat(2, 1fr);
    min-height: calc(100vh - var(--header-size));
    min-height: calc(100svh - var(--header-size));
    align-items: center;
  }
  .first-image {
    height: 100%;
    order: 2;
  }
  .second-section, .gallery-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .second-section {
    align-items: center;
  }
  .news-section li {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-section-text-first-news {
    padding: 5vw 4vw 0 0;
  }
  .news-section-featured-image {
    order: 2;
    margin: 0 0 0 3vw;
  }
  .news-section-text-second-news-title {
    width: 60%;
  }
  .news-section-text-second-news {
    padding: 0 0 5vw 0;
  }
  .second-section-text {
    padding: 5vw 0 5vw 4vw;
  }
  .second-image {
    height: 100%;
    margin: 0 3vw 0 0;
  }
  .gallery-section, .fullscreen-content {
    grid-auto-rows: 1fr;
  }
  .gallery-section img {
    height: var(--image-size-2);
    min-height: 100%;
  }
  .grid-row-span-gallery {
    grid-row: span 2;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fullscreen-content {
    grid-template-columns: 2fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
  }
  .mobile-account-menu {
    display: none;
  }
  .opened .line {
    background-color: var(--colour-text);
  }
  .opened .middle {
    background: transparent;
  }
  .grid-row-span-menu1 {
    grid-row: span 3;
  }
  .grid-row-span-menu2 {
    grid-row: span 2;
  }
  .fullscreen-section1 {
    background-color: var(--background-colour-accent);
    color: var(--background-colour-secondary);
    padding: var(--space) var(--container-space) 0 27%;
  }
  .fullscreen-menu-list {
    padding-top: 20%;
  }
  .fullscreen-section2 {
    justify-content: center;
    background-color: var(--background-colour);
    color: var(--colour-text);
    padding: 4rem;
  }
  .fullscreen-section3 {
    justify-content: center;
    background-color: var(--background-colour-secondary);
    color: var(--colour-text);
    padding: 4rem;
  }
  .fullscreen-section4 {
    justify-content: flex-end;
    background-color: var(--background-colour-accent);
    color: var(--background-colour-secondary);
    border: none;
    padding: 0 var(--container-space) var(--space) 27%;
    margin: 0;
  }
  .account-buttons a {
    border: 1px solid hsla(0, 0%, 13%, 0.259);
    color: var(--colour-text);
  }
  .account-buttons a:hover {
    background-color: var(--background-colour-accent);
    color: hsl(0, 0%, 100%);
    border-color: var(--background-colour-accent);
  }
  .button-without-border a {
    border: none;
    padding: 0;
    opacity: 0.6;
  }
  .button-without-border a:hover {
    background: transparent;
    color: var(--colour-text);
    opacity: 1;
  }
  .page-image {
    background-attachment: fixed;
  }
  .featured-image-single img {
    height: var(--image-size-3);
  }
  #form_application-form .frm_fields_container {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-span {
    grid-column: span 2;
  }
}
@media screen and (min-width: 1150px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fullscreen-section2, .fullscreen-section3 {
    padding: var(--space) var(--container-space);
  }
}
@media screen and (min-width: 1580px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 1024px) {
  .no-mobile, .fullscreen-section2 {
    display: none;
  }
  .content-size-device {
    max-width: var(--content-size);
  }
}



