﻿@charset "utf-8";

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base */
body {
  font: 13px/1.5 Tahoma, Verdana, Arial, Helvetica, sans-serif;
  color: #3f3f3f;
  background: #84270e;
  overflow-x: hidden;
}

a {
  outline: none;
  text-decoration: none;
}

a,
a > img {
  transition: opacity 0.35s;
}

a > img {
  opacity: 1;
}

a:hover > img {
  opacity: 0.6;
}

.clear {
  clear: both;
  height: 0;
  font-size: 1px;
  line-height: 0;
}

/* Layout shell */
#header {
  background: #000 url(../images/layout/header.jpg) top center repeat-x;
  width: 100%;
  padding: 0 12px 8px;
}

#logo {
  display: block;
  width: min(515px, 92vw);
  height: clamp(100px, 32vw, 179px);
  margin: 0 auto;
  background: url(../images/layout/logo.png) bottom center no-repeat;
  background-size: contain;
}

#menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0 8px;
}

#menu li {
  float: none;
}

#menu a {
  display: block;
  padding: 12px 9px 8px;
  font-size: clamp(9pt, 2.2vw, 11pt);
  text-transform: uppercase;
  color: #b52701;
  text-align: center;
}

#menu a:hover {
  color: #fff;
}

#content {
  background: #000;
  padding-top: 15px;
}

#main {
  background: #272727;
  border-top: 1px solid #484848;
  border-bottom: 1px solid #000;
  padding-bottom: 30px;
}

#maincont {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
}

#static {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 10px;
  color: #9c9a9a;
  align-items: start;
}

.teatara {
  min-width: 0;
  color: #9a9c9c;
}

.teatara h2 {
  width: 100%;
  max-width: 100%;
  min-height: 29px;
  margin: 10px 0;
  padding: 10px 12px 0 15px;
  font-size: 10pt;
  text-transform: uppercase;
  color: #fff;
  background: url(../images/layout/actualno.jpg) top left no-repeat;
  background-size: cover;
}

#teataracont {
  padding: 0 10px 5px;
  overflow: hidden;
}

.profile-photo {
  float: left;
  margin: 4px 12px 10px 0;
  width: min(180px, 40vw);
  max-width: 100%;
  height: auto;
}

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

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

.text-small {
  font-size: 13px;
}

#teataracont p {
  margin: 0 0 0.75em;
}

#teataracont strong {
  font-weight: bold;
}

/* Gallery grid */
.showgall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding: 4px 0;
}

.showgall a {
  display: block;
  float: none;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid #fff;
}

.showgall a img {
  float: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
#footer {
  width: 100%;
  max-width: 960px;
  min-height: 120px;
  margin: 10px auto 0;
  padding: 16px 12px 24px;
  color: #272727;
  background: url(../images/layout/footerlogo.jpg) center top no-repeat;
  background-size: contain;
  overflow: hidden;
}

#footer::after {
  content: '';
  display: table;
  clear: both;
}

#footer h3 {
  font-size: 11pt;
  font-weight: bold;
  color: #272727;
}

#footer a {
  font-weight: bold;
  color: #272727;
}

#footer a:hover {
  color: #0e0e0e;
}

#footer a.ab {
  display: block;
  color: #9c9a9a;
}

.fleft {
  float: left;
  margin: 20px 40px 0 0;
  font-weight: bold;
}

.fright {
  float: right;
  max-width: 300px;
  width: 100%;
  margin-right: 10px;
}

/* Tablet and below: single column */
@media (max-width: 992px) {
  #static {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fleft {
    margin-right: 24px;
  }

  .fright {
    float: none;
    clear: both;
    margin: 16px 0 0;
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #header {
    padding-bottom: 4px;
    background: #e7dbbe;
  }

  #logo {
    width: min(400px, 88vw);
    height: clamp(90px, 28vw, 150px);
  }

  #menu {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #menu li {
    flex: 0 0 auto;
  }

  #menu a {
    padding: 10px 12px 8px;
    white-space: nowrap;
  }

  #main {
    padding-bottom: 20px;
  }

  #maincont {
    padding: 0 10px;
  }

  .profile-photo {
    float: none;
    display: block;
    width: min(200px, 70vw);
    margin: 0 auto 12px;
  }

  .text-right {
    text-align: left;
  }

  .showgall {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
  }

  #footer {
    min-height: 100px;
    padding-bottom: 20px;
  }

  .fleft {
    float: none;
    margin: 16px 0 0;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .teatara h2 {
    font-size: 9pt;
    padding-top: 8px;
  }

  .showgall {
    grid-template-columns: repeat(3, 1fr);
  }

  #footer {
    background-size: 90% auto;
  }
}
