/*
  Wspólne uzupełnienie dla stron portfolio.
  Dokumenty wykorzystują starszy układ tabelaryczny; reguły zachowują jego
  wygląd na dużych ekranach i zapewniają czytelność na telefonach.
*/

:root {
  color-scheme: light;
  --page-background: #c0c0b6;
  --text-color: #221d1a;
  --link-color: #656a6d;
  --focus-color: #165f61;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 5px 20px 0 30px;
  background-color: var(--page-background);
  color: var(--text-color);
  font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(16px, 1vw + 11px, 18px);
  line-height: 1.65;
}

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

/* Zachowujemy stary układ strony.
   Nowoczesne style dotyczą tylko nagłówka i elementów lightbox. */

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: #165f61;
}

a[rel^="lightbox"] {
  display: inline-block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgb(33 29 26 / 20%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a[rel^="lightbox"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(33 29 26 / 30%);
}

a[rel^="lightbox"] img {
  display: block;
}

a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body {
    margin: 0;
    padding: 12px;
    background-attachment: scroll;
  }

  /* Nadpisuje historyczne width=\"900\" i width=\"1200\" w głównych tabelach. */
  table[width] {
    width: 100% !important;
    height: auto !important;
  }

  td,
  th {
    height: auto !important;
    padding: 7px;
  }

  p,
  li {
    font-size: 1rem;
  }

  a[rel^="lightbox"] {
    border-radius: 3px;
  }
}

h1.page-title {
    font-family: Century Gothic, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
    text-align: center;
    margin: 2px 0 8px 0;
}


h1.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* ===========================
   NAGŁÓWEK
=========================== */

.site-header{
    width:min(1200px,100%);
    margin:0 auto;
    padding:18px 0 18px;
    background:#fff;
    text-align:center;
    overflow:hidden;
}

.site-name,
.site-name:link,
.site-name:visited,
.site-name:hover,
.site-name:active{

    display:block;

    font-family:"Playfair Display", serif;
    font-size:48px;
    font-weight:400;
    letter-spacing:3px;
    line-height:1.1;

    color:#555;

    text-decoration:none;

    transition:color .25s ease;

    transform:none;
}

.site-brand{

    display:block;

    margin-top:10px;

    font-family:Arial, Helvetica, sans-serif;

    font-size:18px;

    font-weight:300;

    letter-spacing:8px;

    color:#7f7f7f;

    line-height:1.2;

    text-transform:lowercase;

    white-space:nowrap;

}

.typing{

    display:inline;

    animation:none;

    opacity:1;

    clip-path:none;

}

/* Strony tekstowe */

.text-page td{
    font-size:10.5pt;
    line-height:1.65;
}

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

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

/* ===========================
   STOPKA
=========================== */

.site-footer {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 14px 20px;
    background: #ffffff;
    color: #656A6D;
    font-family: "Century Gothic", Arial, Verdana, Tahoma, sans-serif;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.5;
}

/* ===========================
   GŁÓWNY KONTENER
=========================== */

.site-container{
    width:1200px;
    max-width:100%;
    margin:0 auto;
    background:#efece5;
}

/* ==================================================
   V4.0 - GŁÓWNY UKŁAD STRONY (Szablon A)
================================================== */

.site-layout{
    display:flex;
    align-items:stretch;
    width:100%;
}

.sidebar{
    width:125px;
    flex:0 0 125px;
    padding:15px;
    background:url("../pb911.jpg");
    box-sizing:border-box;
}

.main-content{
    flex:1;
    padding:15px;
    background:url("../pb911.jpg");
    min-width:0;
    box-sizing:border-box;
}

.content-center{
   max-width:613px;
   margin:0 auto;
}

.site-footer{
    margin-top:20px;
    padding:0;
    text-align:center;
    color:#656A6D;
    font-size:0.95rem;
    font-style:italic;
    background:transparent;
    width:100%;
}

.text-red {
    color: #FF0033;
}

.link-plain,
.link-plain:link,
.link-plain:visited,
.link-plain:hover,
.link-plain:active {
    text-decoration: none;
}

.text-main {
    color: #221d1a;
}

.text-accent {
    color: #fc594c;
}
