*{	margin:0px;
	padding:0px;}

html{
    font-family: "Champ", Verdana, Tahoma;
	font-size:12pt;
	/* min-width:800px; */
}
a {
    color:inherit;
}


#title {
    width:100%;
    height:9.5rem;
    background-color:white;
    display:flex;
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: 100%;

}
#title #logo{
    width:10rem;
    height:10rem;
    margin-top:1.5rem;
}
#title #sailing_kagou{
    height:6.5rem;
    margin-top:2rem;
    flex:1;
}
#title #sailing_kagou #title_image{

    height:6rem;
    margin-bottom:-0.7rem;
}


#title #links{
    display: flex;
    justify-content: flex-end;
    font-size:1.2em;
    color:white;
    
}

#title #lang-switch{
  color: white;
  margin-top:0.5rem;
  margin-right:0.5rem;
  
  /* position: absolute;
  top: 1em;
  right: 1em; */
}

#title #reload{
  color: white;
  /* position: absolute;
  top: 15em;
  right: 1em; */  
  font-size:1em;
  margin-left:2rem;
  position:relative;
  top:0.5em;
}





#title #links img{
    width:1.5em;
    position:relative;
    top:0.4em;
    margin-right:0.5em;
    margin-left:2.5em;
}


#wrapper{
    display:flex;
    /* justify-content: flex-end; */
    width:100%;   
    flex:1; 
}

#content {
  flex: 1;      
  padding:0em 5em;
}

.article_header{
    padding-top:1em;
    display: flex;
    align-items: flex-start; /* optional */
    gap: 1rem; /* space between image and text */
    padding-bottom:1em;
    
    font-style: italic;
}
.article_preview{
    border-bottom:1px solid #aaa;
}

.article_header .img img{
    width:15vw;
    height:15vw;
    border-radius: 50%;        /* makes it circular */
     overflow: hidden;          /* hide anything outside the circle */
    flex-shrink: 0;            /* prevent it from shrinking in flexbox */
    margin:0em 2em;
}

.article_header:nth-child(odd) {
  flex-direction: row; /* First on left */
}

.article_header:nth-child(even){
  flex-direction: row-reverse; /* First on right */
}
.article_header .wrapper{
    flex:1;
    margin:1em;
}
.article_preview:hover{
    background-color:#eee;
    cursor:pointer;
}
.article_header h2{
    margin-bottom: 0.5em;
}
.article_header .perex{
    font-style: italic;
  margin-bottom: 1em;
}
.article_header .date{
    margin-bottom:0.5em;
}


/* Hide the toggle button by default */
.menu-toggle {
    display:none;/* todo might allow on phone*/
 
  position: fixed; /* stay at top if you like */
  right: 1em;
  z-index: 999;
  background: #333333dd;
  color: #ffffffdd;
  border: none;
  padding: 0.5em 1em;
  font-size: 1.2em;
  cursor: pointer;
}


#menu {
    width:20vw;
    padding:1em;
    border-left:2px solid #ddd;
}
#menu .article_links a{
    display:block;
}

#menu .article_links{
    padding-left:1em;
}

#content p {
  text-align: justify;
}


.article_full{
    margin-bottom:2em;
}

.article_full h1{
    margin-bottom: 1em;
}
.article_full p{
    margin-bottom: 1em;
}

#back{
  background: none;
  border: 0px;
  margin: 1em;
  font-size: 1em;
  text-decoration: underline;
  cursor:pointer;
}

#back:hover{
  color:blue;
}


h2{
    margin-bottom: 0.5em;
}


figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em auto;
  max-width: 100%;    /* limit size inside content */
  width: 100%;       /* but default to full width of content */
}

figure img {
  max-width: 100%;
  max-height:70vh;
  display: block;
}

figure figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.5em;
  text-align: center;
}

/* ============ Slideshow container ============ */
.slideshow {
  position: relative;
  width: 80%;
  max-width: 70vw;
  margin: 2em auto;
  overflow: visible; /* allow arrows to overflow outside */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Slides wrapper (fixed height so it doesn’t jump) ============ */
.slideshow .slides {
  max-height: 80vh; /* choose your fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* keep everything inside */
}

/* ============ Individual slides ============ */
.slideshow .slides figure {
  display: none;
  margin: 0;
  text-align: center;

  /* Force figure to fill the container and flex its contents */
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center; /* center vertically */
  align-items: center;     /* center horizontally */
  box-sizing: border-box;
}
.slideshow .slides .active{
    display:flex;
}


/* ============ Arrows ============ */
.slideshow .prev,
.slideshow .next {
  background: none; /* no background so they sit outside */
  color: black;
  border: none;
  cursor: pointer;
  font-size: 2em;
  margin: 0 0.5em; /* space from image */
  flex:1;
}

.slideshow .prev {
  order: -1; /* appear before slides */
}

.slideshow .next {
  order: 1; /* appear after slides */
}

/* Disabled arrow buttons styling */
.slideshow .prev:disabled,
.slideshow .next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============ Index overlay on the image ============ */
.slideshow .slide-index {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}


@media (max-width: 768px) {

    html {
        font-size: 12px; /* scale down text a bit on mobile */
    }
    /* Hide menu by default */
    #menu {
        display: none;
        width: 100%;
    }
    #title #logo{
        height:6rem;
        width:6rem;
    }

    #title #sailing_kagou{
            height:6.0rem;
            margin-top:2rem;
            flex:1;
    }
    #title #sailing_kagou #title_image{

        height:3rem;
        margin-bottom:-0.5rem;
    }
    #title #links{
        font-size:1em;
    }
    #content{
        padding:1em;
    }
    .article_header .img img{
    width:30vw;
    height:30vw;
    border-radius: 50%;        /* makes it circular */
     overflow: hidden;          /* hide anything outside the circle */
    flex-shrink: 0;            /* prevent it from shrinking in flexbox */
    margin:0em 1em;
}
}